Skip to content

Combobox has weird overlap when having multiple comboboxes using headlessui example code. #2046

Answered by RobinMalfait
namrog84 asked this question in Help
Discussion options

You must be logged in to vote

Hey! Thank you for your bug report!
Much appreciated! 🙏

Looks like you have some z-index related issues. Here is an updated version: https://codesandbox.io/s/adoring-fire-2ijw8n?file=/src/App.tsx

The idea is to have your wrapper div around the button to be relative z-0 and the div for your options to be absolute z-10 that way the options are always on top of the button.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@namrog84
Comment options

Answer selected by namrog84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2045 on November 28, 2022 12:13.