Skip to content

🔥 The free & Open Source DocuSign alternative

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.js
index 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 position
const handleTabDrag = (key) => {
setDragKey(key);
+ setIsDragging(true);
};
//function for set and update x and y postion after drag and drop signature tab
const 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>