powerpagestoolkit 2.1.1 → 2.2.0

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 +4 -2
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -205,7 +205,7 @@ var ConditionalRenderingError = class extends Error {
205
205
 
206
206
  // src/DOMNodeReference.ts
207
207
  var _init = Symbol("_init");
208
- var DOMNodeReference = class {
208
+ var DOMNodeReference = class _DOMNodeReference {
209
209
  // properties initialized in the constructor
210
210
  target;
211
211
  isLoaded;
@@ -277,9 +277,11 @@ var DOMNodeReference = class {
277
277
  this.value = this.element.value;
278
278
  break;
279
279
  }
280
- if (this.element.classList.contains("boolean-radio")) {
280
+ if (this.yesRadio instanceof _DOMNodeReference) {
281
281
  this.yesRadio.updateValue();
282
282
  this.noRadio.updateValue();
283
+ this.checked = this.yesRadio.checked;
284
+ this.value = this.yesRadio?.checked ? 1 : 0;
283
285
  }
284
286
  this._observeValueChanges();
285
287
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "2.1.001",
3
+ "version": "2.2.0",
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",