devfolioco / react-otp-input

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

fixed backspace button issues #373

Closed Vaibhav165 closed 1 year ago

Vaibhav165 commented 1 year ago

This PR fixes the backspace issues.

Resolves #346

Resolves #306

Resolves #100

If the input field is empty, the cursor now moves to the previous input when Backspace is pressed.

If the input field is not empty, the cursor erases the value present in the input field and stays on it.

prateek3255 commented 1 year ago

We updated the file structure with v3 can you reopen the PR with latest changes if they're still needed