fixed broken dropdowns

This commit is contained in:
Nate Kelley 2025-08-01 21:25:24 -06:00
parent 090637fdb3
commit 0d2b57d687
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 11 additions and 5 deletions

View File

@ -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">

View File

@ -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>
);
});