What does this PR do?
Fixes #17
Added onFocus & onBlur events to OTP Input.
These are only triggered when the previous element in focus was not one of the OTP input fields.
Any background context you want to provide?
These events can be very useful for a lot of things, an good example would analytics.
Screenshots and/or Live Demo
See console in example project
What does this PR do? Fixes #17 Added onFocus & onBlur events to OTP Input. These are only triggered when the previous element in focus was not one of the OTP input fields.
Any background context you want to provide? These events can be very useful for a lot of things, an good example would analytics.
Screenshots and/or Live Demo See console in example project
https://github.com/devfolioco/react-otp-input/assets/98586194/b366f13d-0779-493f-9a73-f3b5bd8839c5