PDA

View Full Version : [FIXED] autoSelect text in field isn't available in touch 2



simeon
6 Nov 2011, 2:38 PM
Noticed I couldnt' select text in a field on focus of that field. It appears that input.select() doesn't workon mobile phones.

I was able to accomplish it with this block of code


stageTime.on('focus', function () {
stageTime.getInput().input.dom.setSelectionRange(0, 9999);
}, this, { delay: 100 });



It would be nice to add support for text selection onFocus to the Ext.field class by config.

Jamie Avins
7 Nov 2011, 8:34 AM
We'll see if that can make it in.