devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React

Home Page:http://devfolioco.github.io/react-otp-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMS autofill button does not work in Chrome for iOS

gpalomar opened this issue · comments

  • Describe the Feature Request

Using autofill "From messages XXXX" button does not work in Chrome for IOS. Works well in Safari.

I've tried to add autoComplete="one-time-code" to the renderInput but it still does the same.

In another issue says that only first number is set in the first input, but in my case none of them are filled.

Any idea about how to achieve this behaviour for Chrome users?

Thanks for your help!

  • Describe Preferred Solution

@gpalomar Which version are you on

@gpalomar Which version are you on

iOS 17.4.1

@gpalomar Which version of react-otp-input do you have?

Same issue only with Chrome on a different version of iOS.
The inputs remain empty while the OS thinks that the code was used so it deletes the SMS from the Messages app.

Update: I just tested it with version 3.1.1 and it works for me