🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: checkbox not embeding in pdf
prafull-opensignlabs7882c61b815b
diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.js b/apps/OpenSign/src/components/pdf/PlaceholderType.jsindex 8f5b78ce8..0b851f258 100644--- a/apps/OpenSign/src/components/pdf/PlaceholderType.js+++ b/apps/OpenSign/src/components/pdf/PlaceholderType.js@@ -334,7 +334,6 @@ function PlaceholderType(props) {return (<div key={ind} className="flex items-center text-center gap-0.5"><input- id={data}style={{width: props.pos.Width,display: "flex",@@ -374,12 +373,7 @@ function PlaceholderType(props) {}}/>{!props.pos.options?.isHideLabel && (- <label- htmlFor={!props.isPlaceholder && data}- className="text-xs mb-0 text-center"- >- {data}- </label>+ <label className="text-xs mb-0 text-center">{data}</label>)}</div>);@@ -714,7 +708,6 @@ function PlaceholderType(props) {return (<div key={ind} className="flex items-center text-center gap-0.5"><input- id={data}style={{width: props.pos.Width,display: "flex",@@ -735,12 +728,7 @@ function PlaceholderType(props) {}}/>{!props.pos.options?.isHideLabel && (- <label- htmlFor={!props.isPlaceholder && data}- className="text-xs mb-0"- >- {data}- </label>+ <label className="text-xs mb-0">{data}</label>)}</div>);diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.jsindex ee89a2666..ba6556930 100644--- a/apps/OpenSign/src/constant/Utils.js+++ b/apps/OpenSign/src/constant/Utils.js@@ -238,7 +238,10 @@ export const addWidgetOptions = (type) => {case "stamp":return defaultOpt;case "checkbox":- return { defaultOpt, options: { isReadOnly: false, isHideLabel: false } };+ return {+ ...defaultOpt,+ options: { isReadOnly: false, isHideLabel: false }+ };case textInputWidget:return { ...defaultOpt, validation: { type: "text", pattern: "" } };case "initials":