react-otp-input icon indicating copy to clipboard operation
react-otp-input copied to clipboard

call the props onKeyDown if exists

Open Bhanukamax opened this issue 5 years ago • 1 comments

  • Add onKeyDown functionality This PR introduces the onKeyDown prop and it get's executed on each key down and get's the event as a parameter.

Bhanukamax avatar Nov 20 '20 08:11 Bhanukamax

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.

efc avatar Apr 28 '22 20:04 efc

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

prateek3255 avatar Mar 26 '23 07:03 prateek3255