Open dickhardt opened 11 years ago
According to this thread, this is by design of Apple. I tried numerous workaround suggested, but nothing seems to work properly.
http://stackoverflow.com/questions/6287478/mobile-safari-autofocus-text-field
Not possible
Does this relate to this issue?
https://discussions.apple.com/thread/4398117?start=30&tstart=0
I think the focus was in the document.loaded event... I'll take another look.
The above thread on Apple talks about losing focus after keyboard is up. That's not the problem in our situation. I can programatically focus but it seems Mobile Safari will only allow this if the first event on the JS stack is a user driven event. I'll leave issue here for future devs to find a workaround or if Mobile Safari allows some sort of directive to override this default behaviour.
moved from https://github.com/dickhardt/A2P3/issues/36