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

Autofill OTP from SMS does not work properly Chrome #371

Open Mouaadouk opened 1 year ago

Mouaadouk commented 1 year ago

System used:

iOS: 15.1.1 Chrome: 96.0.4664.53 Steps to reproduce the issue:

open react-otp-input demo in iOS Chrome send yourself an OTP code via SMS once received the code, tap on 1st input box and tap "From Messages 123456" on top of the keyboard only 1 digit of the 6 digits code has been copied. The OTP input focused on the second input box.

hunghg255 commented 1 year ago

@Mouaadouk you can use this, I forked this lib and fix something. it is based on code v2 refer: https://github.com/devfolioco/react-otp-input/tree/v2.4.0 https://www.npmjs.com/package/reactjs-otp-input

Charmix commented 1 year ago

@hunghg255 Hi, could you share what kind of changes did you make? I've checked that this issue has gone in your repo.

hunghg255 commented 1 year ago

@hunghg255 Hi, could you share what kind of changes did you make? I've checked that this issue has gone in your repo.

@Charmix you can check this my commit https://github.com/hunghg255/reactjs-otp-input/commit/e4262e5aa68abda9f2cdcf2faaccd1a83d10d58f

Ryanjso commented 1 year ago

Also see #322

prateek3255 commented 9 months ago

Hey @Ryanjso Sorry for the delayed response but can you open a PR for the issue?