devfolioco / react-otp-input

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

call the props onKeyDown if exists #262

Closed Bhanukamax closed 1 year ago

Bhanukamax commented 3 years ago
efc commented 2 years ago

Please pull this into the shipping code. I need to be able to handle the "Enter" key so that the OTP gets validated when the user hits the return key, but there is no way to cleanly capture this even without this.

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