You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I'm pressing esc (instead of x (with x everything works fine)) dialog window replaces dropdown menu, here is example how it looks
Reproduction
Create dropdown menu, and add there dialog button, as component, here is example, how to do this:
<script>
import*asDropdownMenufrom"$lib/components/ui/dropdown-menu"import*asDialogfrom"$lib/components/ui/dialog"
</script>
<DropdownMenu.Root>
<DropdownMenu.Trigger>Open</DropdownMenu.Trigger>
<DropdownMenu.Content>
<DropdownMenu.Group>
<DropdownMenu.Label>My Account</DropdownMenu.Label>
<DropdownMenu.Separator />
<Dialog.Root>
<Dialog.Triggerclass="w-full hover:bg-accent hover:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50">Open</Dialog.Trigger>
<Dialog.Content>
<Dialog.Header>
<Dialog.Title>Are you sure absolutely sure?</Dialog.Title>
<Dialog.Description>
This action cannot be undone. This will permanently delete your account
and remove your data from our servers.
</Dialog.Description>
</Dialog.Header>
</Dialog.Content>
</Dialog.Root>
</DropdownMenu.Group>
</DropdownMenu.Content>
</DropdownMenu.Root>
Logs
No response
System Info
Windows, Chrome
Severity
annoyance
The text was updated successfully, but these errors were encountered:
lixelv
changed the title
dialog and dropdown-menu: dialog overlaps dropdown-menu on pressing esc button
Dialog and dropdown-menu: dialog replaces dropdown-menu on pressing esc button
Aug 19, 2024
Describe the bug
Then I'm pressing esc (instead of x (with x everything works fine)) dialog window replaces dropdown menu, here is example how it looks
Reproduction
Create dropdown menu, and add there dialog button, as component, here is example, how to do this:
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: