Watch out! Chrome has a huge bug with <input type="number"> which causes values to change…
@jaffathecake108K followers
302,847 views
57 Comments
Comments from the original post on X (Twitter)

@jaffathecake
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.
29 likes

@jaffathecake
Some are saying this isn't new… but it is. For a long time, if there's a parent element with a non-passive wheel listener (which React adds by default) then the wheel changes the input value, but it doesn't also scroll the page. The bug I'm talking about is different & new.
18 likes

@jaffathecake
The bug I'm talking about results in the input changing as well as scrolling, making it way more likely that the user doesn't notice the change - as in the video. - the bug appeared in Chrome 147, and was fixed in 150.
13 likes

@jaffathecake
Yesssss @bramus got the fix merged into Chrome 149, which rolls out next week. The bug's still there if you have a passive "wheel" listener on any parent, but hopefully that's less common.
25 likes

@WebDevCaptain
is this a bug ??? 😅 I thought i just need to focus away and then scroll 😂
17 likes

@jaffathecake
Yes, this doesn't happen in Firefox or Safari. It was a regression in Chrome 147
15 likes

@richardhyland
That bug has been there for years hasn’t it. Swear I’ve seen it for a long time, so long as that input field is focused
8 likes

@jaffathecake
Nah it depends on listeners
2 likes

@coffeedev
how is something like this not a hotfix candidate, especially given it's a regression from the previous version 🤯
2 likes

@jaffathecake
I'm pushing for it to be a hotfix. Fingers crossed.
6 likes

@jamesckemp
I face this issue regularly - it's amplified when you use the Logi Master mouse, because it keeps spinning 🫠
2 likes

@NathanSherburn
Thank you for flagging this! We were wondering why people were all of a sudden donating amounts like $1,000.07 at the nonprofit I work at.
2 likes

@jaffathecake
I guess you should put the submit button at the top so people have to scroll up to get to it. Increased donations!
3 likes

@rellivdev
I think it's just new feature, scroll driven inputs!
1 like

@efortis
I thought that was a new feature. Now I have to add it back.
1 like

@joshmo_dev
@firefox on top babyyyyyyy!!!!
1 like

@realdosaygo
Jake, come on, dude, please don't vibe code chrome 😂
1 like

@pjchrobak
This behavior isn’t exactly new, is it? Chrome has worked like this for many years. What surprises me more is that this is apparently a regression :)
1 like

@jaffathecake
Some time ago, Chrome would use the scroll wheel for changing values in number inputs, but it wouldn't scroll the page at the same time. All of that is bad UX. The scroll wheel shouldn't change values.
4 likes

@horsemankukka
@pjchrobak no in a number input field with arrows it's totally the expected behavior imo and i hate programs that don't implement it
1 like




















