1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
    SgtDick is on a distinguished road

      0  

    Default Unanswered: Elements in background get unintended focus

    Unanswered: Elements in background get unintended focus


    This problem is really driving me crazy. When I have an element in front of another element (can really be anything, such as a textfield, hyperlink or button), and the front element is clicked away / dismissed, the background element instantly get's focus/fired. So when dismissing the MessageBox in the example below, I instantly get the keyboard popped up and the textfield is focussed.

    I've had this problem also with a hyperlink, being instantly opened in a browser window. Strangely enough this doesn't occur in Google Chrome on PC, but it does on Android and iOS.

    View this senchafiddle on Android / iOS, and see what I mean: http://www.senchafiddle.com/full/!NxY8s/
    sourc: http://www.senchafiddle.com/#NxY8s

    Any ideas on this? Thanks in advance for your help!


  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,640
    Vote Rating
    435
    Answers
    3106
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Just tried the example in iOS Simulator using iOS6 and it didn't focus on the textfield.
    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.

Tags for this Thread