When you hold the up or down arrow on the input, even though its disabled, the input value stil changes. How do I fix this 'exploit' wothout deleting the arrows all together. Only on Firefox
Try it: Press the up arrow. After 5 seconds the input will disable, but you are still able to change the value.
Edit: The input is disabled such that When you click it to edit, it is disabled, but if you hold the arrow keys before it is disabled, the input will still change.
Why is this a duplicate question?
setTimeout ( function() {
var number = document.getElementById('number').disabled = true }, 5000)
<input type="number" id="number">