Skip to content
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

Dropdown doesn't show on top of the modal component #694

Open
iamaeron opened this issue Apr 7, 2024 · 1 comment
Open

Dropdown doesn't show on top of the modal component #694

iamaeron opened this issue Apr 7, 2024 · 1 comment

Comments

@iamaeron
Copy link

iamaeron commented Apr 7, 2024

I am using the headless modal component on my project and inside that modal, I am using a datepicker library, specifically flatpickr for my date picker input. The trigger is shown correctly inside the modal but after clicking the trigger, the dropdown is shown beneath the modal.

Image for visual representation of the issue:
image

Minimal reproduction link:
https://stackblitz.com/edit/qwik-starter-xdwp96?file=src%2Fcomponents%2Fdatepicker.tsx

@thejackshelton
Copy link
Contributor

thejackshelton commented Apr 14, 2024

@iamaeron so the problem here is the date picker component portals the content outside of the modal's dialog element.

this is a tough one, since we don't have control over where that goes 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants