-
9 Dec 2011 5:29 AM #1
focus() event not firing for Selectfield (Ext.field.Select) in ST2 PR2
focus() event not firing for Selectfield (Ext.field.Select) in ST2 PR2
I have a form with text inputs and a select field. I have the problem that the on screen keyboard of the iPhone stays visible and covers the overlay of the selectfield.
I was hoping to counteract this by hiding the keyboard by triggering blur() event on the text fields, however the selectfield does not fire the focus() event.
I am using the following code. Here the show() event is fired but focus() is never fired, even after selecting an item in the list.
Ext.field.Select API Documentation: http://docs.sencha.com/touch/2-0/#!/...t.field.SelectHTML Code:{ xtype: 'selectfield', name: 'rating', label: 'Rating', options: [ {text: 'Three', value: '3'}, {text: 'Two', value: '2'}, {text: 'One', value: '1'} ], listeners: { focus: function() { console.log('focus'); }, show: function() { console.log('show'); } } }
-
9 Dec 2011 10:32 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,617
- Vote Rating
- 435
I have moved this to the bugs forum and pushed into our bug tracker. Thank you.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
6 Jan 2012 5:05 AM #3
Not yet fixed in ST 2.0.0 PR3
Not yet fixed in ST 2.0.0 PR3
Thank you for fixing this, however I see that Sencha Touch 2.0.0 PR3 was released on the same day and this fix is not yet present in this release.
Is there a workaround for the time being?
-
7 Apr 2012 4:46 AM #4
I’m still seeing this in ST2 Commercial 2.0.0
-
9 Apr 2012 8:24 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Re-opening this issue.
-
15 May 2012 12:21 AM #6
Still an issue for 2.0.1. Is there a known workaround? i tried the events show and focus, but both dont fire when the selectfield is activated. I need it to hide the keyboard when using android phones.
-
30 May 2012 4:35 AM #7
Bumping this post, just like previous entry I can't blur the edit box which opened the soft keyboard on android.
This is required on phones with the config option usePicker on true, false or auto.
Neither option is usable if the soft keyboard is popped up or the edit box is on top of the select list hindering the selection.
-
6 Aug 2012 12:07 AM #8
Hi,
This Issue still exist in ST 2.1.0
Any news with this issue?
Is there any workaround?
-
7 Aug 2012 3:33 AM #9
Hi,
Can someone please pay attention to this issue?
I checked the Release note and I found this:
[TOUCH-1209] Fixed focus event not firing for Ext.field.Select
This was supposed to be fixed on:
Release Notes for Sencha Touch 2.0.pr4
Still not fixed on ST 2.1.0
Thanks.
-
15 Aug 2012 2:39 PM #10
This will be in the next beta of Sencha Touch 2.1.
There are some difficulties with this functionality on a lot of mobile browsers, so it is not very consistent, especially on Android. It does however work well on iOS. This will be in the documentation (when released).Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1209
in
Sprint 24 (2.1.0-b3).


Reply With Quote