When I\'m giving input type number the letter e and special charecters are also displaying in input field. I want to display only digits. How to block them?
e
A simple solution which I used in React.
onKeyDown={(evt) => ["e", "E", "+", "-"].includes(evt.key) && evt.preventDefault()}