fix: disable modal prop on DropdownMenu to prevent scroll disappearing (#5861)

pull/5867/head
wndnjs0 1 month ago committed by GitHub
parent 765a8c6e28
commit d98f665919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,7 +9,7 @@ const DropdownMenu = React.forwardRef<
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
>(({ ...props }, _ref) => { >(({ ...props }, _ref) => {
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />; return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" modal={false} {...props} />;
}); });
DropdownMenu.displayName = "DropdownMenu"; DropdownMenu.displayName = "DropdownMenu";

Loading…
Cancel
Save