How to use Dialog within Popover? #1926
Replies: 3 comments
-
You could try Maybe there are other ways to fix this? |
Beta Was this translation helpful? Give feedback.
-
Does anyone have a solution for this? The |
Beta Was this translation helpful? Give feedback.
-
My not-so-satisfying workaround for this is using Dialog instead of Popover. Multiple / Stacked / Nested, Dialog example: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have Dialog inside Popover like this:
When I open Dialog, the Popover disappears.
How to prevent Popover from auto-closing when Dialog is Open?
Why? (use case)
Inside the Popover user can click on the 'delete item' button === dangerous action, that obviously needs some confirmation. So instead of ugly alert I'm willing to use Headless UI Dialog component. After confirmation, user should still be able to delete another item from Popover. Popover should still be open.
Iv'e tried to wrap Dialog with my own portal but Dialog is sucked into Headlessui default one.
I'm stuck, need more brains 😅
Beta Was this translation helpful? Give feedback.
All reactions