@legalplace/prerenderx 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,6 +97,8 @@ var FillPdfForm = (function (_super) {
97
97
  var option = box.options[i];
98
98
  var currentValue = this.getOptionValue(option.id);
99
99
  if (currentValue === true) {
100
+ if (this.references.options[option.id].meta.type === "checkbox" && box.value === "Off")
101
+ return "On";
100
102
  return box.value;
101
103
  }
102
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/prerenderx",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "PrerenderX",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/prerenderx",
@@ -109,6 +109,8 @@ class FillPdfForm extends FillPdfFormBase {
109
109
  const currentValue = this.getOptionValue(option.id)
110
110
 
111
111
  if (currentValue === true) {
112
+ if (this.references.options[option.id].meta.type === "checkbox" && box.value === "Off")
113
+ return "On"
112
114
  return box.value
113
115
  }
114
116
  }