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

expose the event for onChange

Open mohammedzamakhan opened this issue 6 years ago • 1 comments

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 avatar Oct 04 '19 19:10 mohammedzamakhan

@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.

silviubogan avatar May 25 '21 10:05 silviubogan