fix: disable modal prop on DropdownMenu to prevent scroll disappearing (#5861)
This commit is contained in:
parent
765a8c6e28
commit
d98f665919
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const DropdownMenu = React.forwardRef<
|
|||
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
>(({ ...props }, _ref) => {
|
||||
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
|
||||
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" modal={false} {...props} />;
|
||||
});
|
||||
DropdownMenu.displayName = "DropdownMenu";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue