-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Combobox overrides HTML styles with overflow:hidden when menu opened #3209
Comments
Hey! This is because the components is Can you make your CodeSandbox link public so that I can take a look? |
@RobinMalfait Sure, I've updated a link: CodeSanbox The idea is understandable, but shouldn't it be explicit to force such a lock or at least a way to disable it? Thank you! |
You can disable that behavior (by setting the It looks like the CodeSandbox only includes a |
Thanks! I've missed that option... I've updated Sandbox to replicate the issue. Please pay attention to To reproduce:
=> Header is gone |
I see what you mean now. The problem here is indeed the From the spec:
I think there are 2 solutions to this problem:
I think that for your scenario, the Since this issue can be solved with a non-hacky CSS solution, and since the For that reason I'm going to close this issue for now. Again, I think that the If you still run into issues with this feel free to re-open the issue. If you run into other issues feel free to create a new issue. Hope this helps! |
Thank you! |
What package within Headless UI are you using?
For example: @headlessui/react
What version of that package are you using?
For example: v2.0.3
What browser are you using?
For example: Arc (Chrome)
Reproduction URL
CodeSanbox
Describe your issue
The combobox component adds styling to the HTML root when the menu opened, which corrupts the "sticky" behaviour of other components.
This is what is added to the when combobox menu is open:
style=overflow: hidden; padding-right: 0px;
The text was updated successfully, but these errors were encountered: