SIGN IN SIGN UP

[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().
J
Jack Pope committed
278d318de1b40d6c96ff4e39ca0a2702ab133521
Parent: 3cba19c
Committed by GitHub <noreply@github.com> on 8/12/2026, 1:05:13 AM