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

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

Open
crissadriana opened this issue Sep 12, 2024 · 1 comment
Open

Comments

@crissadriana
Copy link

crissadriana commented Sep 12, 2024

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
Copy link

Same here. Does anyone have a good idea?

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