dillon1000/react

Commit

Switching the name property preserves radio selection

Fixes a case where changing the name and checked value of a radio button in the same update would lead to checking the wrong radio input. Also adds a DOM test fixture for related issue.

Related issues:
https://github.com/facebook/react/issues/7630
Browse files
Changed paths5 files
First-parent comparison
A fixtures/dom/src/components/fixtures/input-change-events/RadioNameChangeFixture.js AddedM fixtures/dom/src/components/fixtures/input-change-events/index.js ModifiedM packages/react-dom/src/__tests__/ReactDOMInput-test.js ModifiedM packages/react-dom/src/client/ReactDOMFiberComponent.js ModifiedM packages/react-dom/src/client/ReactDOMFiberInput.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…