Make the action dropdowns modal

This dismisses the tooltip when the modal is active
This commit is contained in:
Jackson Harper
2022-04-11 10:03:24 -07:00
parent db2251b38a
commit 2ab7e4ccdd

View File

@ -79,6 +79,7 @@ type DropdownProps = {
sideOffset?: number
disabled?: boolean
css?: CSS
modal?: boolean
}
export const DropdownSeparator = styled(Separator, {
@ -116,10 +117,11 @@ export function Dropdown(props: DropdownProps & PopperContentProps): JSX.Element
side = 'bottom',
sideOffset = 0,
alignOffset = 0,
css
css,
modal
} = props
return (
<Root modal={false}>
<Root modal={modal}>
<DropdownTrigger disabled={disabled}>{triggerElement}</DropdownTrigger>
<DropdownContent
css={css}