SIGN IN SIGN UP

[Fiber] Update input.defaultValue for type=number too (#36980)

We used to avoid updating .defaultValue until blur on number inputs
because of a Chrome bug, but the relevant Chromium behavior was fixed in
2020 in M85 https://issues.chromium.org/issues/40124871 and likewise in
WebKit https://bugs.webkit.org/show_bug.cgi?id=217156 so I think we can
probably just remove this special-cased logic.

We do still need some special logic for number inputs because it's the
only type where we let users specify a non-string value that has
multiple string representations and need to be careful not to clobber
the .value if it has a slightly different string than what you'd get
from casting a number to string.

Fixes #29862.

Tested with the number inputs fixture in current Chrome, Safari, and
Firefox.
S
Sophie Alpert committed
c0c39a6b3907eaab35f43074949e2957a2a734c1
Parent: 5123b06
Committed by GitHub <noreply@github.com> on 7/10/2026, 2:58:34 AM