[DOM] Blur portaled Fragment focus targets - #37161
Merged
Merged
Conversation
jackpope
force-pushed
the
fragment-refs/blur-portaled-focus
branch
from
July 31, 2026 19:14
f38a225 to
f7f42fe
Compare
jackpope
force-pushed
the
fragment-refs/blur-portaled-focus
branch
from
July 31, 2026 20:15
f7f42fe to
92c79b2
Compare
jackpope
marked this pull request as ready for review
July 31, 2026 21:07
eps1lon
approved these changes
Jul 31, 2026
jackpope
force-pushed
the
fragment-refs/blur-portaled-focus
branch
from
August 9, 2026 19:15
92c79b2 to
22ae639
Compare
eps1lon
approved these changes
Aug 10, 2026
jackpope
force-pushed
the
fragment-refs/blur-portaled-focus
branch
from
August 11, 2026 03:49
22ae639 to
03033f0
Compare
Base automatically changed from
fragment-refs/fix-remove-event-listener
to
main
August 12, 2026 00:50
blur() early-exited when activeElement was outside the React host parent, so focus() on portaled children could not be cleared.
jackpope
force-pushed
the
fragment-refs/blur-portaled-focus
branch
from
August 12, 2026 00:50
03033f0 to
5fb7130
Compare
|
Comparing: 3cba19c...5fb7130 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
poteto
approved these changes
Aug 12, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 12, 2026
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 #37125, which made blur() apply recursively to be consistent with focus(). DiffTrain build for [278d318](278d318)
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 12, 2026
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 #37125, which made blur() apply recursively to be consistent with focus(). DiffTrain build for [278d318](278d318)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 #37125, which made blur() apply recursively to be consistent with focus().