devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React
http://devfolioco.github.io/react-otp-input
MIT License
643 stars 423 forks source link

SMS autofill button does not work in Chrome for iOS #444

Open gpalomar opened 4 months ago

gpalomar commented 4 months ago

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!

Kushagraagarwal commented 1 month ago

@gpalomar Which version are you on

gpalomar commented 1 month ago

@gpalomar Which version are you on

iOS 17.4.1

Kushagraagarwal commented 1 month ago

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

gpalomar commented 1 month ago

3.1.1

scoelliCollectAI commented 4 weeks ago

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.

scoelliCollectAI commented 4 weeks ago

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