Skip to content

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

Draft
mj12albert wants to merge 4 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 4 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 🔺+413B(+0.08%) 🔺+166B(+0.11%)
@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 from 921acd2 to 4d33fed Compare May 20, 2026 11:14
@mj12albert mj12albert force-pushed the fix-shadow-dom-focus-escapes-focustrap branch from 4d33fed to cfb7297 Compare May 20, 2026 11:15
@mj12albert mj12albert force-pushed the fix-shadow-dom-focus-escapes-focustrap branch 2 times, most recently from c82003b to 36ec88b Compare May 20, 2026 13:38
@mj12albert mj12albert force-pushed the fix-shadow-dom-focus-escapes-focustrap branch from 36ec88b to 0d6f27f Compare May 20, 2026 14:27
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