Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose the event for onChange #119

Open
mohammedzamakhan opened this issue Oct 4, 2019 · 1 comment
Open

expose the event for onChange #119

mohammedzamakhan opened this issue Oct 4, 2019 · 1 comment

Comments

@mohammedzamakhan
Copy link

I want to call event.preventDefault for onChange function, but since the onChange function does not receive the event object, I am unable to do it.

I have a keyboard listener on document, so whenever I click delete, the keyboard listener on the document is being triggered. If we could call e.preventDefault in onChange function, I think this could have been prevented

@silviubogan
Copy link

@mohammedzamakhan I also need the native (synthetic React) event object to use NumericInput with Controller in react-hook-form. Did you find an alternative solution, a walk-around? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants