powerpagestoolkit 2.7.121-2.2 → 2.7.131

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.
package/dist/bundle.js CHANGED
@@ -613,10 +613,15 @@ var DOMNodeReference = class _DOMNodeReference {
613
613
  }
614
614
  const eventType = this.determineEventType();
615
615
  this.element.dispatchEvent(new Event(eventType, { bubbles: false }));
616
- if (this.element.classList.contains("boolean-radio") && this.yesRadio instanceof _DOMNodeReference && this.noRadio instanceof _DOMNodeReference) {
616
+ if (this.yesRadio instanceof _DOMNodeReference && this.noRadio instanceof _DOMNodeReference) {
617
617
  this.yesRadio.element.checked = value;
618
618
  this.noRadio.element.checked = !value;
619
619
  this.value = value;
620
+ this.checked = value;
621
+ this.element.checked = value;
622
+ } else if (this.isRadio || this.element.type === "radio") {
623
+ this.checked = value;
624
+ this.element.checked = value;
620
625
  } else {
621
626
  this.element.value = value;
622
627
  }