react-verification-code-input icon indicating copy to clipboard operation
react-verification-code-input copied to clipboard

Problems on iOS Safari/Cordova

Open flache opened this issue 5 years ago • 1 comments

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

flache avatar Jun 10 '19 11:06 flache