mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make the action dropdowns modal
This dismisses the tooltip when the modal is active
This commit is contained in:
parent
db2251b38a
commit
2ab7e4ccdd
1 changed files with 4 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue