qwikifiers / qwik-ui

Qwik's official Headless and styled component library
https://qwikui.com
MIT License
558 stars 115 forks source link

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

Open iamaeron opened 1 month ago

iamaeron commented 1 month ago

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 commented 1 month ago

@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 😬