-
Notifications
You must be signed in to change notification settings - Fork 49.8k
Closed as not planned
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: React 19
Steps To Reproduce
- Pass an
value={undefined}as a prop to an<input />element - Observe the DOM and see the
valueattribute is absent
Link to code example:
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!
Metadata
Metadata
Assignees
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug