devfolioco / react-otp-input

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

Keyboard layout auto switches from numbers to characters in mobiles. #327

Closed aKshayKadam03 closed 1 year ago

aKshayKadam03 commented 2 years ago

When we try to enter the OTP in mobiles. The keyboard layout auto switches from Number to Characters/Alphabets layout because the OTP component re-renders on every input.

The above issue can be reproduced on the official demo link. i.e https://devfolioco.github.io/react-otp-input/

Steps to reproduce:

Preferred Solution

aKshayKadam03 commented 2 years ago

Please check the following clip: https://www.loom.com/share/eadc9d07d36a4211b758464a356bc6ba

Kiran636 commented 2 years ago

use attribute isInputNum={true}

aKshayKadam03 commented 2 years ago

https://devfolioco.github.io/react-otp-input/

The OTP has both alphabets and numbers. So can't fix it to just numbers.

prateek3255 commented 1 year ago

You can now customize the type with the inputType prop in v3.

dhanushpani commented 1 year ago

does anyone resolved this?