-
Notifications
You must be signed in to change notification settings - Fork 49k
Open
Labels
Component: DOMStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug
Description
React version: 16.13.1 and 17.0.0-alpha.0-2d131d782
Steps To Reproduce
- Render two
input[type="radio"][name="radio"]
: one is checked, one isn't - Get warning about passing
onChange
orreadOnly
- Add empty
onChange
to both
Link to code example:
The current behavior
- React recommends
readOnly
forinput[type="radio"]
even though this isn't supported natively (though React could polyfill it) - After looping through the radios once with arrow key navigation the checked state changes
The expected behavior
Arrow key navigation shouldn't break out of the controlled value. It's debateable whether React should recommend readOnly
when this isn't a standard attribute like readOnly
for <input type="text" />
.
Metadata
Metadata
Assignees
Labels
Component: DOMStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug