Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: disable dropdown if selected

Marc Seitz2eaf133d116b
diff --git a/components/documents/document-card.tsx b/components/documents/document-card.tsx
index 1950931d..c154446f 100644
--- a/components/documents/document-card.tsx
+++ b/components/documents/document-card.tsx
@@ -143,6 +143,9 @@ export default function DocumentsCard({
};
const handleMenuStateChange = (open: boolean) => {
+ // If the document is selected, don't open the dropdown
+ if (isSelected) return;
+
if (isFirstClick) {
setMenuOpen(true); // Keep the dropdown open on the first click
return;