react-otp-input icon indicating copy to clipboard operation
react-otp-input copied to clipboard

SMS autofill button does not work in Chrome for iOS

Open gpalomar opened this issue 1 year ago • 6 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 avatar Mar 13 '24 16:03 gpalomar

@gpalomar Which version are you on

Kushagraagarwal avatar May 20 '24 09:05 Kushagraagarwal

@gpalomar Which version are you on

iOS 17.4.1

gpalomar avatar May 20 '24 09:05 gpalomar

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

Kushagraagarwal avatar May 20 '24 10:05 Kushagraagarwal

3.1.1

gpalomar avatar May 21 '24 06:05 gpalomar

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 avatar Jun 17 '24 15:06 scoelliCollectAI

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

scoelliCollectAI avatar Jun 17 '24 15:06 scoelliCollectAI