react-otp-input
react-otp-input copied to clipboard
Auto filling otp input in safari.
- Describe the Feature Request When OTP sent on a mobile on which otp screen is opened, to fill the otp we need to pass autocomplete property to input html tag as "one-time-code".
- Describe Preferred Solution Provide a prop to be passed to set autocomplete property of input tag. Refer link for more details of this implementation.
Facing the same. @sugamantra did you find any workaround?
Does a workaround with a hidden input with autoComplete="one-time-code" and an onChange function to sync the value from the hidden input to the OTP input works? 💭
@ajayns , @apollonian Can u check this once need help on this feature. @carryall , @sugamantra did u guys get any solution for this issue. I am also facing same.
The feature is available in: https://www.npmjs.com/package/react18-input-otp
You can now fully customize the inputs with v3