Skip to content

Commit d4b7c8a

Browse files
fix: resolve duplicate auto-reminder input box issue in request signature form
1 parent f3e39f1 commit d4b7c8a

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

apps/OpenSign/src/pages/Form.js

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,26 +1040,29 @@ const Forms = (props) => {
10401040
</label>
10411041
</div>
10421042
)}
1043-
{formData?.autoreminder === true && (
1044-
<div className="text-xs mt-2">
1045-
<label className="block">
1046-
{t("remind-once")}
1047-
<span className="text-red-500 text-[13px]">*</span>
1048-
</label>
1049-
<input
1050-
type="number"
1051-
value={formData.remindOnceInEvery}
1052-
name="remindOnceInEvery"
1053-
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
1054-
onChange={handleStrInput}
1055-
onInvalid={(e) =>
1056-
e.target.setCustomValidity(t("input-required"))
1057-
}
1058-
onInput={(e) => e.target.setCustomValidity("")}
1059-
required
1060-
/>
1061-
</div>
1062-
)}
1043+
{props.title === "New Template" &&
1044+
formData?.autoreminder === true && (
1045+
<div className="text-xs mt-2">
1046+
<label className="block">
1047+
{t("remind-once")}
1048+
<span className="text-red-500 text-[13px]">
1049+
*
1050+
</span>
1051+
</label>
1052+
<input
1053+
type="number"
1054+
value={formData.remindOnceInEvery}
1055+
name="remindOnceInEvery"
1056+
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
1057+
onChange={handleStrInput}
1058+
onInvalid={(e) =>
1059+
e.target.setCustomValidity(t("input-required"))
1060+
}
1061+
onInput={(e) => e.target.setCustomValidity("")}
1062+
required
1063+
/>
1064+
</div>
1065+
)}
10631066
{props.title !== "New Template" && (
10641067
<>
10651068
<span className=" mt-2 font-[400]">

0 commit comments

Comments
 (0)