Skip to content

Add test to ensure checked inputs don't accidentally get value="on"#12000

Merged
gaearon merged 1 commit intofacebook:masterfrom
nhunzaker:nh-no-value-assignment-on-checkboxes
Jan 9, 2018
Merged

Add test to ensure checked inputs don't accidentally get value="on"#12000
gaearon merged 1 commit intofacebook:masterfrom
nhunzaker:nh-no-value-assignment-on-checkboxes

Conversation

@nhunzaker
Copy link
Copy Markdown
Contributor

@nhunzaker nhunzaker commented Jan 9, 2018

In absence of a value, radio and checkboxes report a value of "on". Between 16 and 16.2, we assigned a node's value to it's current value in order to "deattach" it from defaultValue. This had the unfortunate side-effect of assigning value="on" to radio and checkboxes

Related issues:
#11998

In absence of a value, radio and checkboxes report a value of
"on". Between 16 and 16.2, we assigned a node's value to it's current
value in order to "dettach" it from defaultValue. This had the
unfortunate side-effect of assigning value="on" to radio and
checkboxes

Related issues:
facebook#11998
@gaearon gaearon merged commit 982a828 into facebook:master Jan 9, 2018
ManasJayanth pushed a commit to ManasJayanth/react that referenced this pull request Jan 12, 2018
…acebook#12000)

In absence of a value, radio and checkboxes report a value of
"on". Between 16 and 16.2, we assigned a node's value to it's current
value in order to "dettach" it from defaultValue. This had the
unfortunate side-effect of assigning value="on" to radio and
checkboxes

Related issues:
facebook#11998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants