Results 1 to 4 of 4

Thread: Search field 'blur' event isn't getting called on mobile device

  1. #1
    Sencha User dobie_'s Avatar
    Join Date
    Sep 2011
    Location
    Seattle, WA
    Posts
    47
    Vote Rating
    0
      0  

    Default Search field 'blur' event isn't getting called on mobile device

    I'm trying to capture the blur event on a search field. It works on my laptop in Chrome but not on the device when I click the 'Done' button in the on-screen keyboard. What's going on? I'm using an iPod Touch with iOS 5.0.1 and Sencha Touch 2 RC-1.

    Code:
    listeners: {
      blur: {
          fn: function(a, b) {                   
              console.log('blur!');                                              
          },                                     
          element: 'element'                     
      }
    }

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

    Default

    Have you tried without setting the element event option?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User dobie_'s Avatar
    Join Date
    Sep 2011
    Location
    Seattle, WA
    Posts
    47
    Vote Rating
    0
      0  

    Default

    Yeah -- same problem when element isn't set.

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    255
    Vote Rating
    2
      0  

    Default

    need to see more of your code.

    I have the following working from inside a controller
    Code:
    'textfield':{blur:'blur'}
    this gets every single field event but its just an example. To see a specific field use
    Code:
    'textfield[name=login]'

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
  •