dillon1000/react

Commit

Keep autoFocus attribute in the DOM (#11192)

* Keep autoFocus attribute in the DOM

* Don't emit autoFocus attribute on the client

* Test that hydration doesn't call focus

* Add autoFocus to SSR fixture
Browse files
Changed paths5 files
First-parent comparison
M fixtures/ssr/src/components/Page.js ModifiedM src/renderers/dom/fiber/ReactDOMFiberComponent.js ModifiedM src/renderers/dom/shared/DOMProperty.js ModifiedM src/renderers/dom/shared/HTMLDOMPropertyConfig.js ModifiedM src/renderers/dom/shared/__tests__/ReactServerRendering-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…