otp-input-react icon indicating copy to clipboard operation
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.

Open praneetha-ck-robo opened this issue 5 years ago • 2 comments

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

praneetha-ck-robo avatar Nov 28 '19 08:11 praneetha-ck-robo

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 ?

shubhanus avatar Feb 21 '20 22:02 shubhanus

when i press Backspace it goto previous state and i want to update next it also update previous input

gouravsethi933 avatar Dec 16 '22 05:12 gouravsethi933