diff --git a/apps/OpenSign/src/components/pdf/Placeholder.js b/apps/OpenSign/src/components/pdf/Placeholder.js
index 2cbeafaa4..7db380e2c 100644
--- a/apps/OpenSign/src/components/pdf/Placeholder.js
+++ b/apps/OpenSign/src/components/pdf/Placeholder.js
@@ -5,7 +5,7 @@ import { Rnd } from "react-rnd";
import {
defaultWidthHeight,
handleCopyNextToWidget,
- isMobile,
+ isTabAndMobile,
onChangeInput,
radioButtonWidget,
textInputWidget,
@@ -764,7 +764,7 @@ function Placeholder(props) {
placeholderBorder={placeholderBorder}
/>
)}
- {isMobile ? (
+ {isTabAndMobile ? (
handleOnClickPlaceholder()}
+ onClick={() => handleOnClickPlaceholder()}
>
{props.pos.key === props.selectWidgetId &&
}
diff --git a/apps/OpenSign/src/components/pdf/RenderPdf.js b/apps/OpenSign/src/components/pdf/RenderPdf.js
index 11f0a3f2f..bf880bf00 100644
--- a/apps/OpenSign/src/components/pdf/RenderPdf.js
+++ b/apps/OpenSign/src/components/pdf/RenderPdf.js
@@ -27,7 +27,6 @@ function RenderPdf({
numPages,
pageDetails,
pdfRequest,
- setCurrentSigner,
signerObjectId,
signedSigners,
setPdfLoadFail,
@@ -122,7 +121,7 @@ function RenderPdf({
};
//function for render placeholder block over pdf document
- const checkSignedSignes = (data) => {
+ const checkSignedSigners = (data) => {
let checkSign = [];
//condition to handle quick send flow and using normal request sign flow
checkSign = signedSigners
@@ -131,9 +130,6 @@ function RenderPdf({
sign?.Id === data?.Id || sign?.objectId === data?.signerObjId
)
: [];
- if (data.signerObjId === signerObjectId) {
- setCurrentSigner(true);
- }
const handleAllUserName = (Id, Role, type) => {
return (
@@ -260,7 +256,7 @@ function RenderPdf({
? signerPos.map((data, key) => {
return (
- {checkSignedSignes(data)}
+ {checkSignedSigners(data)}
);
})
@@ -441,15 +437,15 @@ function RenderPdf({
{isLoadPdf &&
containerWH?.width &&
pdfOriginalWH?.width &&
- (pdfRequest
+ (pdfRequest //pdf request sign flow
? signerPos?.map((data, key) => {
return (
- {checkSignedSignes(data)}
+ {checkSignedSigners(data)}
);
})
- : placeholder
+ : placeholder //placeholder and template flow
? signerPos.map((data, ind) => {
return (
@@ -516,52 +512,56 @@ function RenderPdf({
);
})
: xyPostion.map((data, ind) => {
+ // signyourself flow
return (
- {data.pos.map((pos) => {
- return (
-
-
- handleStop(event, dragElement, pos.type)
- }
- handleSignYourselfImageResize={
- handleSignYourselfImageResize
- }
- index={index}
- xyPostion={xyPostion}
- setXyPostion={setXyPostion}
- setIsSignPad={setIsSignPad}
- isShowBorder={true}
- isSignYourself={true}
- posWidth={posWidth}
- posHeight={posHeight}
- pdfDetails={pdfDetails[0]}
- isDragging={isDragging}
- setIsInitial={setIsInitial}
- setWidgetType={setWidgetType}
- setSelectWidgetId={setSelectWidgetId}
- selectWidgetId={selectWidgetId}
- handleUserName={handleUserName}
- setIsCheckbox={setIsCheckbox}
- setValidateAlert={setValidateAlert}
- setCurrWidgetsDetails={setCurrWidgetsDetails}
- handleTextSettingModal={
- handleTextSettingModal
- }
- scale={scale}
- containerWH={containerWH}
- pdfOriginalWH={pdfOriginalWH}
- />
-
- );
- })}
+ {data.pageNumber === pageNumber &&
+ data.pos.map((pos) => {
+ return (
+
+
+ handleStop(event, dragElement, pos.type)
+ }
+ handleSignYourselfImageResize={
+ handleSignYourselfImageResize
+ }
+ index={index}
+ xyPostion={xyPostion}
+ setXyPostion={setXyPostion}
+ setIsSignPad={setIsSignPad}
+ isShowBorder={true}
+ isSignYourself={true}
+ posWidth={posWidth}
+ posHeight={posHeight}
+ pdfDetails={pdfDetails[0]}
+ isDragging={isDragging}
+ setIsInitial={setIsInitial}
+ setWidgetType={setWidgetType}
+ setSelectWidgetId={setSelectWidgetId}
+ selectWidgetId={selectWidgetId}
+ handleUserName={handleUserName}
+ setIsCheckbox={setIsCheckbox}
+ setValidateAlert={setValidateAlert}
+ setCurrWidgetsDetails={
+ setCurrWidgetsDetails
+ }
+ handleTextSettingModal={
+ handleTextSettingModal
+ }
+ scale={scale}
+ containerWH={containerWH}
+ pdfOriginalWH={pdfOriginalWH}
+ />
+
+ );
+ })}
);
}))}
diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js
index 3b96ac8ca..c72e6e8f7 100644
--- a/apps/OpenSign/src/constant/Utils.js
+++ b/apps/OpenSign/src/constant/Utils.js
@@ -11,6 +11,7 @@ import printModule from "print-js";
export const fontsizeArr = [7, 8, 9, 10, 11, 12, 13, 14, 15, 18];
export const fontColorArr = ["red", "black", "blue", "yellow"];
export const isMobile = window.innerWidth < 767;
+export const isTabAndMobile = window.innerWidth < 1023;
export const textInputWidget = "text input";
export const textWidget = "text";
export const radioButtonWidget = "radio button";
diff --git a/apps/OpenSign/src/pages/PdfRequestFiles.js b/apps/OpenSign/src/pages/PdfRequestFiles.js
index 1982de689..9bfd292b4 100644
--- a/apps/OpenSign/src/pages/PdfRequestFiles.js
+++ b/apps/OpenSign/src/pages/PdfRequestFiles.js
@@ -332,6 +332,13 @@ function PdfRequestFiles() {
message:
"You have successfully signed the document. You can download or print a copy of the partially signed document. A copy of the digitally signed document will be sent to the owner over email once it is signed by all signers."
});
+ } else {
+ const checkCurrentUser = documentData[0].Placeholders.find(
+ (data) => data.signerObjId === currUserId
+ );
+ if (checkCurrentUser) {
+ setCurrentSigner(true);
+ }
}
const isGuestSign = location.pathname.includes("/load/");
@@ -1728,7 +1735,6 @@ function PdfRequestFiles() {
pdfRequest={true}
signerObjectId={signerObjectId}
signedSigners={signedSigners}
- setCurrentSigner={setCurrentSigner}
setPdfLoadFail={setPdfLoadFail}
pdfLoadFail={pdfLoadFail}
setSignerPos={setSignerPos}
diff --git a/apps/OpenSign/src/pages/SignyourselfPdf.js b/apps/OpenSign/src/pages/SignyourselfPdf.js
index cf2d75b38..b896370a5 100644
--- a/apps/OpenSign/src/pages/SignyourselfPdf.js
+++ b/apps/OpenSign/src/pages/SignyourselfPdf.js
@@ -923,7 +923,6 @@ function SignYourSelf() {
const divRect = e.currentTarget.getBoundingClientRect();
const mouseX = e.clientX - divRect.left;
const mouseY = e.clientY - divRect.top;
-
const xyPosition = {
xPos: mouseX,
yPos: mouseY