dillon1000/react

Commit

Add test to ensure checked inputs don't accidentally get value="on" (#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:
https://github.com/facebook/react/issues/11998
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMInput-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…