Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

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

wndnjs0d98f6659190b
diff --git a/web/src/components/ui/dropdown-menu.tsx b/web/src/components/ui/dropdown-menu.tsx
index acdb4b5f2..5ae8a4cb5 100644
--- a/web/src/components/ui/dropdown-menu.tsx
+++ b/web/src/components/ui/dropdown-menu.tsx
@@ -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";