Re:JQAPI - Alternative jQuery Documentation
by mustardamus on Thursday February 23, 2012 @10:38AM
(#3625275)
Yes, I'm on a Mac. Good point with the simulator. Never looked into it though.
Re:JQAPI - Alternative jQuery Documentation
by jonknee on Thursday February 23, 2012 @10:46AM
(#3625322)
It's an easy change, you just need to move the searchFocus() call to outside of the touch event. This should do the trick:
setTimeout(searchFocus, 0);
Update: I gave you a pull request on GitHub.
In iOS the keyboard automatically pops up when there is an input field focused. That's also why you need to have a touch event to set focus because it gets annoying having half the screen disappear (so for example when visiting Google the keyboard does not pop up and the search box does not have focus).