You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[menu] Content doesn't close on interaction outside of popup in ShadowRoot #3603
When menu opened (with passed ShadowRoot container to MenuPortal), it doesn't close on interaction outside of popup in ShadowRoot. But when clicking not on the ShadowRoot, it closes.
Expected behavior
The menu should detect that the click occurred outside its own bounds inside ShadowRoot and close automatically.
@rosset-nocpes is your shadow root open or closed? Also do you have a reproduction for us using Stackblitz?
One workaround for closed roots is to ensure the internal backdrop is being rendered on top of the outside-clickable area, covering the shadow root content so that clicks are registered correctly. <Menu.Root modal> (default) does this, but it relies on a particular DOM layout which is affected when appending the portal inside the shadow root, so it may need adjusting
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.
Activity
atomiks commentedon Dec 24, 2025
@rosset-nocpes is your shadow root open or closed? Also do you have a reproduction for us using Stackblitz?
One workaround for closed roots is to ensure the internal backdrop is being rendered on top of the outside-clickable area, covering the shadow root content so that clicks are registered correctly.
<Menu.Root modal>(default) does this, but it relies on a particular DOM layout which is affected when appending the portal inside the shadow root, so it may need adjustingatomiks commentedon Dec 24, 2025
This preview release version may fix it, can you confirm?
rosset-nocpes commentedon Dec 24, 2025
I have ShadowRoot open. The previous version doesn't fix it
atomiks commentedon Dec 31, 2025
We need a Stackblitz or similar reproduction to look into this properly
github-actions commentedon Jan 7, 2026
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.