6 Oct 2012 4:53 AM #1
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/
Any ideas on this? Thanks in advance for your help!
9 Oct 2012 6:53 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Just tried the example in iOS Simulator using iOS6 and it didn't focus on the textfield.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.