Skip to content

The Open Source DocuSign Alternative.

fix: add defaultValue to SignaturePad to persist signatures (#522)

zahid47fa060389508a
diff --git a/apps/marketing/src/components/(marketing)/widget.tsx b/apps/marketing/src/components/(marketing)/widget.tsx
index e737442ea..28a2e807a 100644
--- a/apps/marketing/src/components/(marketing)/widget.tsx
+++ b/apps/marketing/src/components/(marketing)/widget.tsx
@@ -391,6 +391,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
<SignaturePad
className="aspect-video w-full rounded-md border"
+ defaultValue={signatureDataUrl || ''}
onChange={setDraftSignatureDataUrl}
/>