3 ms·
Do you have a Mac? You can run the iOS simulator and figure out when it's popping up and roughly what it looks like. In this case the problem is you're setting
by jonknee 15y ago
Do you have a Mac? You can run the iOS simulator and figure out when it's popping up and roughly what it looks like. In this case the problem is you're setting focus on the search field.
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).
- mustardamus 15y agoYes, I'm on a Mac. Good point with the simulator. Never looked into it though.
- jonknee 15y agoIt'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.