-
4 Nov 2011 3:15 AM #1
Text field focus()
Text field focus()
I have a few issues trying to set focus on a text field inside a panel.
I am currently doing:
where getForm() returns the view (a Panel) and this.getBoxCodeInput() returns the text field. The field does not get focused.Code:this.getForm().on({ scope: this, 'show': function (el, opt) { this.getBoxCodeInput().focus(); } });
On another instance I need to focus another field when one field has been completed (carriage return pressed or go button on ipad)
This seems to focus the other input (it flashes a carret whhen I try to move to another field) but the ipad virtual keyboard does not show up and the any key press (we use a barcode scanner) won;t fill in the field.Code:this.control({ '#codeInput': { action: this.barcodeInput }, }); ..... barcodeInput: function(e, field) { this.getLocationFrom().getInput().focus(); }
-
5 Nov 2011 9:14 PM #2
There are a few issues with field events in DP1, and how focusing and blurring works. This could be one of them. Adding it as a bug-
Thanks.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-986
in
2.0.


Reply With Quote