refactor: stop showing initial popup when wdigets drag

This commit is contained in:
prafull-opensignlabs
2024-03-15 19:04:02 +05:30
parent df61e143af
commit 4fda5b4531
2 changed files with 2 additions and 13 deletions
+1 -6
View File
@@ -487,12 +487,7 @@ function PlaceHolderSign() {
setIsCheckbox(true);
} else if (dragTypeValue === radioButtonWidget) {
setIsRadio(true);
} else if (
dragTypeValue !== textWidget &&
dragTypeValue !== "signature"
) {
setIsNameModal(true);
}
}
setWidgetType(dragTypeValue);
setSignKey(key);
setCurrWidgetsDetails({});
@@ -23,7 +23,6 @@ import {
defaultWidthHeight,
addWidgetOptions,
textInputWidget,
textWidget,
radioButtonWidget
} from "../constant/Utils";
import RenderPdf from "../components/pdf/RenderPdf";
@@ -447,12 +446,7 @@ const TemplatePlaceholder = () => {
setIsCheckbox(true);
} else if (dragTypeValue === radioButtonWidget) {
setIsRadio(true);
} else if (
dragTypeValue !== textWidget &&
dragTypeValue !== "signature"
) {
setIsNameModal(true);
}
}
setCurrWidgetsDetails({});
setWidgetType(dragTypeValue);
setSignKey(key);