For people still having trouble with this even after the bug fix (as I was), this may be down to the fact that the 'maxlength' property is not set when you display the prompt, as I believe this...