Watch out! Chrome has a huge bug with <input type="number"> which causes values to change unexpectedly.
It's fixed in Chrome 150, but that won't land until the end of June.
Watch out! Chrome has a huge bug with <input type="number"> which causes values to change unexpectedly.
It's fixed in Chrome 150, but that won't land until the end of June.
The 'fixed' behaviour in Chrome 150 is screwy too:
Default: mouse wheel doesn't change the input value. Allows scrolling.
If there's a non-passive 'wheel' listener on any parent: wheel does change the value. Prevents scrolling.
If there's a passive listener: The bug returns.

What is the issue with the HTML Standard? Both Chrome and Safari support increasing or decreasing the value of <input type=number> by scrolling the mouse wheel only when input element need to be fo...