fix: widget scrolling issue in mobile view, on delete placeholder user remove issue,dropdown & checkbox disappear after complete signature by two signers issue

This commit is contained in:
RaktimaNXG
2024-01-19 18:12:21 +05:30
parent f4e907de36
commit e85bbb7bd9
10 changed files with 110 additions and 356 deletions
@@ -56,8 +56,7 @@ function RenderPdf({
signersdata,
setIsPageCopy,
setSignerObjId,
setShowDropdown,
initial
setShowDropdown
}) {
const isMobile = window.innerWidth < 767;
const newWidth = containerWH.width;
@@ -362,7 +361,6 @@ function RenderPdf({
posHeight={posHeight}
handleUserName={handleAllUserName}
isDragging={false}
initial={initial}
pdfDetails={pdfDetails}
/>
</React.Fragment>
@@ -375,9 +373,9 @@ function RenderPdf({
);
};
const handleUserName = (signerId, Role) => {
if (signerId) {
const checkSign = signersdata.find((sign) => sign.objectId === signerId);
const handleUserName = (Id, Role) => {
if (Id) {
const checkSign = signersdata.find((sign) => sign.Id === Id);
if (checkSign?.Name) {
return (
<>