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

Auto filling otp input in safari.

Open sugamantra opened this issue 4 years ago • 4 comments

  • 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.

sugamantra avatar May 29 '21 20:05 sugamantra

Facing the same. @sugamantra did you find any workaround?

rake7h avatar Jun 10 '21 07:06 rake7h

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? 💭

carryall avatar Nov 17 '21 12:11 carryall

@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.

NareshItla avatar Jul 20 '22 07:07 NareshItla

The feature is available in: https://www.npmjs.com/package/react18-input-otp

ritikbanger avatar Aug 09 '22 17:08 ritikbanger

You can now fully customize the inputs with v3

prateek3255 avatar Mar 25 '23 15:03 prateek3255