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

Problems on iOS Safari/Cordova #9

Open
flache opened this issue Jun 10, 2019 · 1 comment
Open

Problems on iOS Safari/Cordova #9

flache opened this issue Jun 10, 2019 · 1 comment

Comments

@flache
Copy link

flache commented Jun 10, 2019

Hi everyone, due to some iOS Safari restrictions around focusing HTMLInputElements, this module does not work on iOS Safari. Unfortunately, there is no easy fix, but it seems possible through swapping Elements and transferring values between Input Elements (So the focused input stays the same, but moves forward in the DOM tree)

In my case (I am using cordova), I was lucky since the UIWebview can be adapted, so if you are a cordova user, just set the KeyboardDisplayRequiresUserAction preference in the config.xml to false

@dminkovsky
Copy link
Contributor

I just tested this on iOS 12 and it works fine. Guessing it works on iOS 13 too?

Not sure why this would be an issue, because the iOS restriction is that you can't focus an input element unless you're on a stack that was initiated due to user action. In this case, the user taps an input (that's a user action) and enters a number (that's another user input) so this library can focus the next input just fine?

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