dillon1000/react

Commit

Deduplication of warn when selected is set on <option> (#11821)

* Deduplication of warn selected on option

- Wrote a failing test
- Deduplication when selected is set on option

* Ran yarn preitter

* Fixed PR request

- Moved dedupe test to above
- Moved && case to seperate if to seperate static and dynamic things
- Render'd component twice

* Actually check for deduplication

* Minor nits
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMSelect-test.js ModifiedM packages/react-dom/src/client/ReactDOMFiberOption.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…