react-numeric-input
react-numeric-input copied to clipboard
expose the event for onChange
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
@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.