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
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    899
    Answers
    3574
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

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

Thread Participants: 1

Tags for this Thread