From be5b1b87f9bdd6879e13fd387f79049cb9ad2010 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Tue, 24 Jun 2025 11:00:12 +0000 Subject: [PATCH] Merge pull request #894 from nxglabs/raktima-patch-main-1 fix: typed signature disappears on finish when more than two signatures are added --- apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx b/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx index 89240dbe7..88e69f852 100644 --- a/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx +++ b/apps/OpenSign/src/components/pdf/WidgetsValueModal.jsx @@ -694,17 +694,20 @@ function WidgetsValueModal(props) { } } if (isTab === "type") { + //trim user name or typed name value to show in initial signature const trimmedName = typedSignature ? typedSignature?.trim() : currentUserName?.trim(); + //get full name of user + const fullUserName = typedSignature || currentUserName const firstCharacter = trimmedName?.charAt(0); const userName = currWidgetsDetails?.type === "initials" ? firstCharacter - : typedSignature; + : fullUserName; const signatureValue = currWidgetsDetails?.typeSignature; setTypedSignature(signatureValue || userName || ""); - convertToImg(fontSelect, userName); + convertToImg(fontSelect, signatureValue || userName || ""); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [isTab]);