@sbb-esta/lyne-elements-dev 4.13.0-dev.1780899271 → 4.13.0-dev.1780917574

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.
@@ -57,7 +57,8 @@ var p = /* @__PURE__ */ new WeakMap(), m = (m) => {
57
57
  return this._checked;
58
58
  }
59
59
  set name(e) {
60
- super.name = e, this._disconnectFromRegistry(), this._connectToRegistry(), this._synchronizeGroupState();
60
+ let t = this.name;
61
+ e !== t && (super.name = e, this._disconnectFromRegistry(t), this._connectToRegistry(), this._synchronizeGroupState());
61
62
  }
62
63
  get name() {
63
64
  return super.name;
@@ -72,7 +73,7 @@ var p = /* @__PURE__ */ new WeakMap(), m = (m) => {
72
73
  super.connectedCallback(), this._connectToRegistry(), this._synchronizeGroupState();
73
74
  }
74
75
  disconnectedCallback() {
75
- super.disconnectedCallback(), this._disconnectFromRegistry();
76
+ super.disconnectedCallback(), this._disconnectFromRegistry(this.name);
76
77
  }
77
78
  formResetCallback() {
78
79
  this.checked = this.hasAttribute("checked");
@@ -131,8 +132,8 @@ var p = /* @__PURE__ */ new WeakMap(), m = (m) => {
131
132
  let n = t.findIndex((e) => this.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING);
132
133
  n === -1 ? t.push(this) : t.splice(n, 0, this), t.forEach((e) => this.associatedRadioButtons.add(e)), this.validate();
133
134
  }
134
- _disconnectFromRegistry() {
135
- this.associatedRadioButtons?.delete(this), this.associatedRadioButtons?.size === 0 ? this._radioButtonGroupsMap?.delete(this.name) : this.validate(), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
135
+ _disconnectFromRegistry(e) {
136
+ this.associatedRadioButtons?.delete(this), this.associatedRadioButtons?.size === 0 ? this._radioButtonGroupsMap?.delete(e) : this.validate(), this.associatedRadioButtons = void 0, this._radioButtonGroupsMap = void 0;
136
137
  }
137
138
  _interactableGroupedRadios() {
138
139
  return Array.from(this.associatedRadioButtons ?? []).filter((e) => d.isVisible(e));