🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix:resolved on-drag placeholder user-details popup open in edit template flow
RaktimaNXG273a35d42fee
diff --git a/microfrontends/SignDocuments/src/Component/TemplatePlaceholder.js b/microfrontends/SignDocuments/src/Component/TemplatePlaceholder.jsindex 5e078ac45..8150149de 100644--- a/microfrontends/SignDocuments/src/Component/TemplatePlaceholder.js+++ b/microfrontends/SignDocuments/src/Component/TemplatePlaceholder.js@@ -158,6 +158,7 @@ const TemplatePlaceholder = () => {const [signKey, setSignKey] = useState();const [IsReceipent, setIsReceipent] = useState(true);const [isDontShow, setIsDontShow] = useState(false);+ const [isDragging, setIsDragging] = useState(false);const senderUser =localStorage.getItem(`Parse/${localStorage.getItem("parseAppId")}/currentUser`@@ -473,11 +474,12 @@ const TemplatePlaceholder = () => {//function for save x and y position and show signature tab on that positionconst handleTabDrag = (key) => {setDragKey(key);+ setIsDragging(true);};//function for set and update x and y postion after drag and drop signature tabconst handleStop = (event, dragElement, signerId, key) => {- if (!isResize) {+ if (!isResize && isDragging) {const dataNewPlace = addZIndex(signerPos, key, setZIndex);let updateSignPos = [...signerPos];updateSignPos.splice(0, updateSignPos.length, ...dataNewPlace);@@ -537,6 +539,9 @@ const TemplatePlaceholder = () => {}}setIsMailSend(false);+ setTimeout(() => {+ setIsDragging(false);+ }, 200);};//function for delete signature block@@ -1132,6 +1137,7 @@ const TemplatePlaceholder = () => {setIsPageCopy={setIsPageCopy}setSignKey={setSignKey}setSignerObjId={setSignerObjId}+ isDragging={isDragging}/>)}</div>