Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entering edit mode on IText on iOS 8.4 dismisses keyboard immediately #91

Open
partlyhuman opened this issue Aug 6, 2015 · 3 comments

Comments

@partlyhuman
Copy link

You can repro this on the Kitchensink demo. Safari on iOS 8.3 works flawlessly. Safari on iOS 8.4 shows and dismisses the keyboard in rapid succession much of the time. If you try it enough times, occasionally the keyboard will stay up. I've attempted programmatically focusing the hidden textfield but this seems to have no effect now(??) This is pretty broken, just appeared on a site we just launched. Ouch.

@partlyhuman
Copy link
Author

Actually I now believe this has less to do with iOS version and more to do with responsiveness of the site and speed of your device. I was tricked because my iOS 8.3 device was a faster iPad, 8.4 an iPhone 5; I believe the keyboard will dismiss if something, not sure what, doesn't happen quickly after the hidden textarea is created. Seems like on the faster devices it's more likely to stick around, but on slower devices the keyboard has a habit of auto-dismissing. One hint was that if you hold down your touch briefly, you can more effectively bring up the keyboard. When I mulled this over, I suspected the delayed click event on touch devices, and in fact, adding in fastclick.js appeared to solve this problem on the slower devices. Honestly I have only an inkling of the source of this error but maybe my experience will help someone else.

@Stefanoviic
Copy link

@partlyhuman did you found a fix for this already?

edit: fastclick.js did the fix for me!

@partlyhuman
Copy link
Author

I think we ended up using fastclick.js too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants