Skip to content

[focus trap] Fix focus leaking in shadow DOM#48548

Draft
mj12albert wants to merge 5 commits into
mui:masterfrom
mj12albert:fix-shadow-dom-focus-escapes-focustrap
Draft

[focus trap] Fix focus leaking in shadow DOM#48548
mj12albert wants to merge 5 commits into
mui:masterfrom
mj12albert:fix-shadow-dom-focus-escapes-focustrap

Conversation

@mj12albert
Copy link
Copy Markdown
Member

Fixes #34980

@mj12albert mj12albert added type: bug It doesn't behave as expected. scope: focus trap Changes related to the focus trap. labels May 19, 2026
@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented May 19, 2026

Deploy preview

https://deploy-preview-48548--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 🔺+414B(+0.08%) 🔺+152B(+0.10%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@mj12albert mj12albert force-pushed the fix-shadow-dom-focus-escapes-focustrap branch 5 times, most recently from 36ec88b to 0d6f27f Compare May 20, 2026 14:27
@mj12albert mj12albert force-pushed the fix-shadow-dom-focus-escapes-focustrap branch from 7cbbc63 to dcec137 Compare June 1, 2026 08:29
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 2, 2026
@mj12albert mj12albert force-pushed the fix-shadow-dom-focus-escapes-focustrap branch from dcec137 to 70b05c2 Compare June 2, 2026 00:59
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: focus trap Changes related to the focus trap. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Popover] FocusTrap in a Shadow DOM loses the focus

1 participant