🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: clear image issue after upload image using sign pad
RaktimaNXG2f195fe02e87
diff --git a/microfrontends/SignDocuments/src/Component/component/signPad.js b/microfrontends/SignDocuments/src/Component/component/signPad.jsindex bb128cccd..f9a25f55e 100644--- a/microfrontends/SignDocuments/src/Component/component/signPad.js+++ b/microfrontends/SignDocuments/src/Component/component/signPad.js@@ -55,16 +55,17 @@ function SignPad({setSignValue(currentUserName);setFontSelect("Fasthand");}, []);- //function for clear signature- const handleClear = (type) => {+ //function for clear signature image+ const handleClear = () => {if (isTab === "draw") {if (canvasRef.current) {canvasRef.current.clear();+ } else if (isStamp) {+ setImage("");}setIsSignImg("");} else if (isTab === "uploadImage") {- setImage("");}};//function for set signature url