Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: focus() event not firing for Selectfield (Ext.field.Select) in ST2 PR2

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1209 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    20
    Vote Rating
    0
      0  

    Question 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.

    HTML 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');
            }
        }
    }
    Ext.field.Select API Documentation: http://docs.sencha.com/touch/2-0/#!/...t.field.Select

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Vote Rating
    1288
      0  

    Default

    I have moved this to the bugs forum and pushed into our bug tracker. Thank you.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    20
    Vote Rating
    0
      0  

    Question 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?

  4. #4
    Sencha Premium Member thomasqbrady's Avatar
    Join Date
    Feb 2012
    Location
    Austin, Tx
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Im still seeing this in ST2 Commercial 2.0.0

  5. #5
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Re-opening this issue.

    Sencha Inc

    Jamie Avins

    @jamieavins

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Posts
    20
    Vote Rating
    0
      0  

    Default

    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.

  7. #7
    Sencha User
    Join Date
    Jun 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default

    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.

  8. #8
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
      0  

    Default

    Hi,

    This Issue still exist in ST 2.1.0
    Any news with this issue?
    Is there any workaround?

  9. #9
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
      0  

    Default

    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.

  10. #10
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    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.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •