radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.53k stars 792 forks source link

Can't select an option rendered in a portal in a Dialog modal=true #3119

Open crissadriana opened 2 weeks ago

crissadriana commented 2 weeks ago

I'm using the Dialog primitive to build a Drawer component and inside the Dialog / Drawer I need to use a headlessui combobox which has some options to select rendered in a portal (hence outside the radix Dialog root) but when trying to select any option from the combobox won't let me do that because the Dialog is a modal and it prevents clicking outside the Dialog (unless is the overlay).

If I set modal= false I can selected the wanted options from the portal but I lose the Dialog Overlay. Can someone advise if there's a way to have both the Dialog modal= true AND the option to interact with elements in a portal outside of the Dialog?

this is the version used for radix ui Dialog: "1.1.1"

image
Demi1024 commented 2 weeks ago

Same here. Does anyone have a good idea?