Skip to content

Commit 7882c61

Browse files
fix: checkbox not embeding in pdf
1 parent 17660da commit 7882c61

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

apps/OpenSign/src/components/pdf/PlaceholderType.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ function PlaceholderType(props) {
334334
return (
335335
<div key={ind} className="flex items-center text-center gap-0.5">
336336
<input
337-
id={data}
338337
style={{
339338
width: props.pos.Width,
340339
display: "flex",
@@ -374,12 +373,7 @@ function PlaceholderType(props) {
374373
}}
375374
/>
376375
{!props.pos.options?.isHideLabel && (
377-
<label
378-
htmlFor={!props.isPlaceholder && data}
379-
className="text-xs mb-0 text-center"
380-
>
381-
{data}
382-
</label>
376+
<label className="text-xs mb-0 text-center">{data}</label>
383377
)}
384378
</div>
385379
);
@@ -714,7 +708,6 @@ function PlaceholderType(props) {
714708
return (
715709
<div key={ind} className="flex items-center text-center gap-0.5">
716710
<input
717-
id={data}
718711
style={{
719712
width: props.pos.Width,
720713
display: "flex",
@@ -735,12 +728,7 @@ function PlaceholderType(props) {
735728
}}
736729
/>
737730
{!props.pos.options?.isHideLabel && (
738-
<label
739-
htmlFor={!props.isPlaceholder && data}
740-
className="text-xs mb-0"
741-
>
742-
{data}
743-
</label>
731+
<label className="text-xs mb-0">{data}</label>
744732
)}
745733
</div>
746734
);

apps/OpenSign/src/constant/Utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ export const addWidgetOptions = (type) => {
238238
case "stamp":
239239
return defaultOpt;
240240
case "checkbox":
241-
return { defaultOpt, options: { isReadOnly: false, isHideLabel: false } };
241+
return {
242+
...defaultOpt,
243+
options: { isReadOnly: false, isHideLabel: false }
244+
};
242245
case textInputWidget:
243246
return { ...defaultOpt, validation: { type: "text", pattern: "" } };
244247
case "initials":

0 commit comments

Comments
 (0)