Sign
@@ -1162,7 +1170,7 @@ const SignDocument = () => {
@@ -1176,7 +1184,8 @@ const SignDocument = () => {
!item.multiLine && !item.maskType &&
{
+ onBlur={(e) => {
+ console.log("Text Input Event Triggered");
const val = e.currentTarget.textContent;
handleTagUpdate(index, val as string);
}}
@@ -1185,24 +1194,25 @@ const SignDocument = () => {
}}
contentEditable={true}
className="outline-none whitespace-nowrap w-full max-h-max"
- >
+ >{item.value ?? ""}
}
{
item.multiLine && !item.maskType &&
{
+ suppressContentEditableWarning
+ onBlur={(e) => {
const val = e.currentTarget.textContent;
handleTagUpdate(index, val as string);
}}
contentEditable={true}
className="w-full outline-none max-h-max"
- >
+ >{item.value ?? ""}
}
{
"maskType" in item && "maskCharacter" in item && item.maskType &&
{
- const val = e.currentTarget.textContent;
- handleTagUpdate(index, val as string);
- }}
+ // onBlur={(e) => {
+ // const val = e.currentTarget.textContent;
+ // handleTagUpdate(index, val as string);
+ // }}
onKeyDown={(e) => {
if (e.key === "Enter") e.preventDefault();
}}
@@ -1210,6 +1220,7 @@ const SignDocument = () => {
// }}
onBlur={(e) => {
let val = e.target.textContent;
+ handleTagUpdate(index, val as string);
if (typeof item.maskType === "string" && typeof val === "string" && item.maskCharacter) {
val = val.replace(/ /g, "");
e.target.textContent = maskUtils(item.maskType, val, item.maskCharacter)
@@ -1268,7 +1279,7 @@ const SignDocument = () => {
// contentEditable={true}
className="outline-none whitespace-nowrap w-full max-h-max"
>
- {recipient?.email || ""}
+ {item.value ?? ""}
}
@@ -1304,10 +1315,7 @@ const SignDocument = () => {
// contentEditable={true}
className="outline-none whitespace-nowrap w-full max-h-max"
>
- {item.firstName && recipient?.firstName+" " }
- {item.lastName && recipient?.lastName }
-
-
+ {item.value ?? ""}
}
@@ -1325,6 +1333,10 @@ const SignDocument = () => {
>
{