-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
After upgrading to @mui/material version 5.16.14, using Shadow DOM the modals, the popovers and the poppers are no longer properly displayed #45601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't see anything wrong. The button inside the Shadow DOM isn't affected by the global style defined in |
Basically it happens when I include in the Shadow DOM components from a microfrontend. It is as if the container property is document.body even though I have specified in the host application
This used to work before the upgrade of material ui and react 19, so I am not sure what is causing it. |
Did you upgrade to React 19 along with MUI v5.16.14? Can you provide a reproduction? A minimal reproduction in a GitHub repo would also work. |
We upgraded to React 19 along with MUI v5.16.14. I have now applied a workaround:
Now it seems to be working. Before the upgrade the second step was not needed. |
I'm not sure what the issue could be without a reproduction. You could check the release changelogs from your previous version to v5.16.14 for any related changes. I'll close this issue. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
Maybe same root cause as #45699 |
Steps to reproduce
Steps:
https://codesandbox.io/p/devbox/shadow-dom-forked-dlzy94?workspaceId=ws_CsFSAjuCnbjDUNYa1yiQ9x
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: Shadow DOM, version 5.16.14, modal, popover, popper
The text was updated successfully, but these errors were encountered: