mirror of https://github.com/buster-so/buster.git
fixed broken dropdowns
This commit is contained in:
parent
090637fdb3
commit
0d2b57d687
|
@ -145,11 +145,13 @@ export function ExportToolbarButton({ children, ...props }: DropdownMenuProps) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenu open={true} onOpenChange={setOpen} modal={false}>
|
<DropdownMenu open={open} onOpenChange={setOpen} modal={false}>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<ToolbarButton pressed={open} tooltip="Export" isDropdown>
|
<div>
|
||||||
{children}
|
<ToolbarButton pressed={open} tooltip="Export" isDropdown>
|
||||||
</ToolbarButton>
|
{children}
|
||||||
|
</ToolbarButton>
|
||||||
|
</div>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
|
|
||||||
<DropdownMenuContent className="swagger" align="start">
|
<DropdownMenuContent className="swagger" align="start">
|
||||||
|
|
|
@ -364,5 +364,9 @@ export const ToolbarButton = React.forwardRef<
|
||||||
</ToolbarPrimitive.Button>
|
</ToolbarPrimitive.Button>
|
||||||
);
|
);
|
||||||
|
|
||||||
return <WithTooltip tooltip={tooltip}>{ButtonComponent}</WithTooltip>;
|
return (
|
||||||
|
<WithTooltip tooltip={tooltip}>
|
||||||
|
<span>{ButtonComponent}</span>
|
||||||
|
</WithTooltip>
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue