@proximus/lavender-input 1.0.1 → 1.0.2
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.es.js +6 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -47,10 +47,12 @@ class s extends f {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
connectedCallback() {
|
|
50
|
-
super.connectedCallback(), ["change"
|
|
50
|
+
super.connectedCallback(), ["change"].forEach((e) => {
|
|
51
51
|
this.$el.addEventListener(e, () => {
|
|
52
52
|
var t;
|
|
53
|
-
(t = this.internals) == null || t.setFormValue(this.formData())
|
|
53
|
+
(t = this.internals) == null || t.setFormValue(this.formData()), this.dispatchEvent(
|
|
54
|
+
new CustomEvent(e, { bubbles: !0, composed: !0 })
|
|
55
|
+
);
|
|
54
56
|
});
|
|
55
57
|
}), this.setupForId(), this.setupAriaDescribedBy(this.$slotHelper, this.$helperSlot, "helper"), this.setupAriaDescribedBy(
|
|
56
58
|
this.$slotStatusText,
|
|
@@ -195,11 +197,11 @@ const d = class d extends s {
|
|
|
195
197
|
connectedCallback() {
|
|
196
198
|
super.connectedCallback();
|
|
197
199
|
const e = this.querySelectorAll("option");
|
|
198
|
-
e.length > 0 &&
|
|
200
|
+
e.length > 0 && e.forEach((t) => {
|
|
199
201
|
this.$el.appendChild(t);
|
|
200
202
|
}), this.observer = new MutationObserver(() => {
|
|
201
203
|
this.$el.innerHTML = this.innerHTML;
|
|
202
|
-
}), this.observer.observe(this, { childList: !0 })
|
|
204
|
+
}), this.observer.observe(this, { childList: !0 });
|
|
203
205
|
}
|
|
204
206
|
disconnectedCallback() {
|
|
205
207
|
this.observer.disconnect();
|