From 1d91a9e813a4f4754cc7c4c5c32e282bf31e547a Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Tue, 16 Jan 2024 02:40:43 +0000 Subject: [PATCH] fix: canvas for drawing signature and clear signature position --- .../src/components/(marketing)/widget.tsx | 1 + .../src/app/(signing)/sign/[token]/form.tsx | 36 ++++++++++--------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/apps/marketing/src/components/(marketing)/widget.tsx b/apps/marketing/src/components/(marketing)/widget.tsx index 24dff7235..e0e8170fa 100644 --- a/apps/marketing/src/components/(marketing)/widget.tsx +++ b/apps/marketing/src/components/(marketing)/widget.tsx @@ -351,6 +351,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
e.stopPropagation()} + onKeyDown={(e) => e.stopPropagation()} >
- {!signatureText && signature && ( + {!signatureText && ( { setSignature(value); }} @@ -160,11 +161,7 @@ export const SigningForm = ({ document, recipient, fields }: SigningFormProps) = )} {signatureText && ( -

+

{signatureText}

)} @@ -173,10 +170,11 @@ export const SigningForm = ({ document, recipient, fields }: SigningFormProps) =
e.stopPropagation()} + onKeyDown={(e) => e.stopPropagation()} > - - {/*
- -
*/} + {signatureText && ( +
+ +
+ )}