magento2 input type number accept “E”
-
28-03-2021 - |
Lösung
This question explain this. It's because "e" can represent a floating number.
Andere Tipps
The latter "e" and "E" represent a floating number when you use the number as input type.
use below code to prevent it
<input type="number" onkeydown="return event.keyCode !== 69" />
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange