DEV Community

Discussion on: How to block +,- and e in Number Input

Collapse
 
vanaf1979 profile image
Stephan Nijman

I'm not sure if this is a problem in React, but in my experience with vanilla js and the onkeydown event it sometimes misses the last typed character (In some browsers). If you see this poblem just use the onkeyup event instead! :)