PDA

View Full Version : [CLOSED] Can't type in prompt messageboxes on Chrome



LachlanArthur
8 Feb 2012, 9:14 PM
I can't type anything into the prompt messageboxes.


Works on desktop Safari as well as Android and iOS. But not on desktop Chrome. No JS errors.


Try it at http://dev.sencha.com/deploy/touch/examples/kitchensink/
Go to 'User Interface -> Overlays' and click the 'Prompt' button.


Tried disabling all extensions, still broken in Chrome v16 and v17.

mitchellsimoens
9 Feb 2012, 10:49 AM
Thanks for the report.

closeratio
24 Feb 2012, 2:34 AM
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 defaults to zero. To change this, see my example below:



Ext.Msg.prompt(
'New text',
'Please enter your text',
Ext.emptyFn,
null,
100,
"",
{
maxlength : 300
}
);

groovydude
4 Apr 2012, 11:54 AM
Just got bitten by this. Thanks closeratio for pointing the 'sensible' default of 0 for a maxlength. Come on Sencha; what's up with that?