dillon1000/react

Commit

[DOM] Blur portaled Fragment focus targets (#37161)

focus() passes through portals as it attempts focus down the fiber tree.
blur() exited early based on a containment check, causing it to stop at
portals.

The result could be a focused element that cannot be blurred.

Follow up to https://github.com/react/react/pull/37125, which made
blur() apply recursively to be consistent with focus().
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFragmentRefs-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…