fix(dashboard): Combobox should not disable body after being closed (#6909)
**What** - Fixes an issue where opening a Combobox inside a modal, and then closing the modal would result in the body preserving the `pointer-events: none;` style.
This commit is contained in:
committed by
GitHub
parent
82a176e30e
commit
982fb44cde
@@ -258,7 +258,6 @@ const ComboboxImpl = <T extends Value = string>(
|
||||
</Popover.Anchor>
|
||||
<Popover.Portal>
|
||||
<Popover.Content
|
||||
asChild
|
||||
align="center"
|
||||
side="bottom"
|
||||
sideOffset={8}
|
||||
@@ -322,6 +321,16 @@ const ComboboxImpl = <T extends Value = string>(
|
||||
</Popover.Content>
|
||||
</Popover.Portal>
|
||||
</PrimitiveComboboxProvider>
|
||||
{open && (
|
||||
<div
|
||||
tabIndex={-1}
|
||||
aria-hidden="true"
|
||||
data-aria-hidden="true"
|
||||
data-state="open"
|
||||
className="fixed inset-0 size-full"
|
||||
onClick={() => setOpen(false)}
|
||||
/>
|
||||
)}
|
||||
</Popover.Root>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user