Ralfarios / antd-input-otp

An OTP Input Component based on Ant Design Component Library for React.
https://www.npmjs.com/package/antd-input-otp
19 stars 4 forks source link

Inmediate delete on backspace #13

Closed cospin closed 1 year ago

cospin commented 1 year ago

Hello, thank you for this package, it's really helpful.

When pressing the backspace button, in the current behavior, it only focuses and selects the number in the previous input, you have to press it again to delete the number. I believe it should immediately delete the input, as it works on most sites. If you are in an empty input and press backspace, the previous input gets cleared and gets focused.

Thanks!

Ralfarios commented 1 year ago

Hello, and thank you for using antd-input-otp.. I will work on this ASAP on the next update 1.1.1..

Cheers, R.

Ralfarios commented 1 year ago

Hello, @cospin ,

Thanks for waiting. In the current version (1.1.1), the Backspace key behaviour is also has been fixed along side the Enter key behaviour. Hope you can use it smoothly on your project.

Cheers, R.