@m3e/chips 1.2.2 → 1.3.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.
package/dist/index.js CHANGED
@@ -1514,7 +1514,13 @@ let M3eInputChipSetElement = class M3eInputChipSetElement extends RequiredConstr
1514
1514
  /** @inheritdoc */
1515
1515
  connectedCallback() {
1516
1516
  super.connectedCallback();
1517
- this.closest("m3e-form-field")?.notifyControlStateChange();
1517
+ if (!customElements.get("m3e-form-field")) {
1518
+ customElements.whenDefined("m3e-form-field").then(() => {
1519
+ this.closest("m3e-form-field")?.notifyControlStateChange();
1520
+ });
1521
+ } else {
1522
+ this.closest("m3e-form-field")?.notifyControlStateChange();
1523
+ }
1518
1524
  __classPrivateFieldSet(this, _M3eInputChipSetElement_tabindex, Number.parseInt(this.getAttribute("tabindex") ?? "0"), "f");
1519
1525
  this.addEventListener("focus", __classPrivateFieldGet(this, _M3eInputChipSetElement_focusHandler, "f"));
1520
1526
  this.addEventListener("focusin", __classPrivateFieldGet(this, _M3eInputChipSetElement_focusInHandler, "f"));