Bug: Uncontrolled <input />
element has value attribute removed
#32576
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: React 19
Steps To Reproduce
value={undefined}
as a prop to an<input />
elementvalue
attribute is absentLink to code example:
React 18
React 19
The current behavior
React 18 passed a booleanish attribute i.e.
<input value />
. React 19 omitted the attribute altogether i.e.<input />
. This is causing a lot of failures in our snapshot tests. I'm not sure if this behaviour is expected in React 19 and I can't find anything in the release notes apart from this loosely related PR. If this behaviour is expected in 19, it would be great to mention that somewhere!The text was updated successfully, but these errors were encountered: