Unverified Commit d98f6659 authored by wndnjs0's avatar wndnjs0 Committed by GitHub

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

parent 765a8c6e
...@@ -9,7 +9,7 @@ const DropdownMenu = React.forwardRef< ...@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment