@proximus/lavender-autocomplete 1.4.18-alpha.19 → 1.4.18-alpha.20

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 CHANGED
@@ -394,7 +394,7 @@ var fe = class extends E {
394
394
  this.$el.innerHTML = "", e.length > 0 && e.forEach((e) => {
395
395
  let t = e.cloneNode(!0);
396
396
  this.$el.appendChild(t);
397
- });
397
+ }), this.$el.value && this.internals?.setFormValue(this.formData());
398
398
  };
399
399
  }
400
400
  connectedCallback() {
@@ -547,8 +547,8 @@ var he = class e extends E {
547
547
  }), t === T.ERROR ? (this.$statusTextSlot.classList.toggle("error"), this.internals && (this.internals.ariaInvalid = "true"), this.$statusTextSlot.classList.remove("success")) : t === T.SUCCESS ? (this.$statusTextSlot.classList.remove("error"), this.$statusTextSlot.classList.toggle("success")) : (this.internals && (this.internals.ariaInvalid = null), this.$statusTextSlot.classList.remove("error", "success"), this.$labelSlot.classList.remove("error", "success")), this.setupAriaDescribedBy(this.$slotHelper, this.$helperSlot, "helper"), this.setupAriaDescribedBy(this.$slotStatusText, this.$statusTextSlot, "status-text"), this.syncGroupAria();
548
548
  }
549
549
  formData() {
550
- let e = new FormData(), t = this.getAttribute("name");
551
- return t && e.append(t, this.getValue()), e;
550
+ let e = new FormData(), t = this.getAttribute("name"), n = this.getValue();
551
+ return t && n && e.append(t, n), e;
552
552
  }
553
553
  formResetCallback() {
554
554
  this.setValue("");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-autocomplete",
4
- "version": "1.4.18-alpha.19",
4
+ "version": "1.4.18-alpha.20",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-autocomplete",
3
- "version": "1.4.18-alpha.19",
3
+ "version": "1.4.18-alpha.20",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",