Merge pull request #1447 from OpenSignLabs/validation

fix: resolve spacing issue for text-type widgets in mobile view using draft template
This commit is contained in:
prafull-opensignlabs
2024-11-12 10:11:14 +05:30
committed by GitHub
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -380,8 +380,10 @@ const DraftTemplate = () => {
);
const key = randomId();
const dragTypeValue = item?.text ? item.text : monitor.type;
const widgetWidth = defaultWidthHeight(dragTypeValue).width;
const widgetHeight = defaultWidthHeight(dragTypeValue).height;
const widgetWidth =
defaultWidthHeight(dragTypeValue).width * containerScale;
const widgetHeight =
defaultWidthHeight(dragTypeValue).height * containerScale;
let dropData = [],
currentPagePosition;
let placeHolder;
+1 -1
View File
@@ -1558,10 +1558,10 @@ function PdfRequestFiles(props) {
//`handlePublicUser` function to use create user from public role and create document from public template
const handlePublicUser = async (e) => {
e.preventDefault();
setLoading(true);
if (!emailRegex.test(contact.email)) {
alert("Please enter a valid email address.");
} else {
setLoading(true);
try {
const params = {
...contact,