Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix(ee): prevent link sheet buttons from auto-submitting the form
Marc Seitze0421081a57a
diff --git a/components/links/link-sheet/custom-fields-section.tsx b/components/links/link-sheet/custom-fields-section.tsxindex be269b4e..ea21a03a 100644--- a/components/links/link-sheet/custom-fields-section.tsx+++ b/components/links/link-sheet/custom-fields-section.tsx@@ -125,6 +125,7 @@ export default function CustomFieldsSection({))}</div><Button+ type="button"onClick={(e) => {e.preventDefault();e.stopPropagation();diff --git a/components/links/link-sheet/watermark-section.tsx b/components/links/link-sheet/watermark-section.tsxindex 38cc3538..8de859af 100644--- a/components/links/link-sheet/watermark-section.tsx+++ b/components/links/link-sheet/watermark-section.tsx@@ -135,6 +135,7 @@ export default function WatermarkSection({{["email", "date", "time", "link", "ipAddress"].map((item) => (<Buttonkey={item}+ type="button"size="sm"variant="outline"className="h-7 rounded-3xl bg-muted text-sm font-normal text-foreground/80 hover:bg-muted/70"@@ -163,6 +164,7 @@ export default function WatermarkSection({{(1 - initialconfig.opacity) * 100}% transparent</p><Button+ type="button"onClick={(e) => {e.preventDefault();e.stopPropagation();