@proximus/lavender-autocomplete 2.0.0-alpha.220 → 2.0.0-alpha.222

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() {
@@ -540,8 +540,8 @@ var he = class e extends E {
540
540
  }), 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();
541
541
  }
542
542
  formData() {
543
- let e = new FormData(), t = this.getAttribute("name");
544
- return t && e.append(t, this.getValue()), e;
543
+ let e = new FormData(), t = this.getAttribute("name"), n = this.getValue();
544
+ return t && n && e.append(t, n), e;
545
545
  }
546
546
  formResetCallback() {
547
547
  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": "2.0.0-alpha.220",
4
+ "version": "2.0.0-alpha.222",
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": "2.0.0-alpha.220",
3
+ "version": "2.0.0-alpha.222",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",