powerpagestoolkit 2.211.1 → 2.221.12

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.
Files changed (2) hide show
  1. package/dist/bundle.js +3 -1
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -261,6 +261,8 @@ var DOMNodeReference = class _DOMNodeReference {
261
261
  updateValue() {
262
262
  switch (this.element.type) {
263
263
  case "checkbox":
264
+ this.value = +this.element.checked;
265
+ this.checked = this.element.checked;
264
266
  case "radio":
265
267
  this.value = this.element.checked;
266
268
  this.checked = this.element.checked;
@@ -283,7 +285,7 @@ var DOMNodeReference = class _DOMNodeReference {
283
285
  this.yesRadio.updateValue();
284
286
  this.noRadio.updateValue();
285
287
  this.checked = this.yesRadio.checked;
286
- this.value = this.yesRadio?.checked ? 1 : 0;
288
+ this.value = +this.yesRadio.checked;
287
289
  }
288
290
  this._observeValueChanges();
289
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "2.211.1",
3
+ "version": "2.221.12",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "./dist/bundle.js",
6
6
  "types": "./dist/index.d.ts",