dillon1000/react
Commit
Browse files 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
Changed paths5 files
First-parent comparisonfixtures/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…