otp-input-react
otp-input-react copied to clipboard
Focusing on the inputs other than first one and typing enters the value in the first input but the cursor moves on to the next input.
Focusing on the inputs other than the first one and typing enters the value in the first input but the cursor moves on to the next input.
Consider a scenario where OTP input has 4 fields. Now I click on the 2nd field, the cursor focus is on the 2nd field. Now when the user types, the entered value is in the 1st input, but the cursor moves to the 3rd field.
Expected behaviour: Cursor should also be in the first input. Cursor should be right where the input is displayed
This can be fixed but why do we need to allow the user to focus on a specific input. I am planning to make it like how swiggy does on the app that UX I like more. Your views @praneetha-ck-robo ?
when i press Backspace it goto previous state and i want to update next it also update previous input