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 (
|
||||
<DropdownMenu open={true} onOpenChange={setOpen} modal={false}>
|
||||
<DropdownMenu open={open} onOpenChange={setOpen} modal={false}>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<ToolbarButton pressed={open} tooltip="Export" isDropdown>
|
||||
{children}
|
||||
</ToolbarButton>
|
||||
<div>
|
||||
<ToolbarButton pressed={open} tooltip="Export" isDropdown>
|
||||
{children}
|
||||
</ToolbarButton>
|
||||
</div>
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
<DropdownMenuContent className="swagger" align="start">
|
||||
|
|
|
@ -364,5 +364,9 @@ export const ToolbarButton = React.forwardRef<
|
|||
</ToolbarPrimitive.Button>
|
||||
);
|
||||
|
||||
return <WithTooltip tooltip={tooltip}>{ButtonComponent}</WithTooltip>;
|
||||
return (
|
||||
<WithTooltip tooltip={tooltip}>
|
||||
<span>{ButtonComponent}</span>
|
||||
</WithTooltip>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue