-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
MenuBar dropdown menus not working in fullscreen mode #1203
Comments
Please upgrade to Svelte 5 and Bits UI 1.0 and if you can still reproduce we will investigate further. We are only supporting stable versions of Bits UI (1.0+) |
Hi Hunter, thanks for speedy response. so I am using latest bits UI & svelte 5, I used an LLM to help me generate initial bug report & as its a mixed project it got confused, I failed to catch the discrepancy in my review, my bad. Will dedicate some time to recreate/investigate the issue in the stackblitz later today & will let you know if can recreate in an isolated environment. some more information regarding this bug, as it does seem to be an edge case: it only seems to be present with https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen , the built in browser f11 fullscreen does not cause the issue. to clarify, triggering fullscreen via requestFullscreen makes the menubars menu items inaccessible on desktop & mobile, though these elements work fine via f11 browser fullscreen ( which is not available on mobile ) |
Ok. so I did some more sleuthing on my end, I think the issue is related to portals & them not working correctly with requestFullscreen. so this is likely not a bits UI issue & more just a browser quirk, If I understand the docs correctly it should be possible to make the menu items render without using portals & thus avoid this issue . will confirm I have everything working later but its likely this issue can be closed . EDIT |
If you're going fullscreen like that, it's unlikely you need portals anyways! Will close this issue for now. |
Describe the bug
Title: MenuBar dropdown menus not working in fullscreen mode
Description:
When using the MenuBar component, dropdown menus stop working when the application is in fullscreen mode. The menus work correctly in windowed mode.
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
Technical Details:
Environment:
Notes:
This appears to be related to how the MenuBar's portal content handles fullscreen contexts. The menu triggers remain visible and clickable, but the portaled content either isn't rendering or isn't properly positioned in the fullscreen stacking context.
Possible areas to investigate:
Reproduction
https://stackblitz.com/github/huntabyte/bits-ui-reproduction?file=src%2Froutes%2F%2Bpage.svelte
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: