@proximus/lavender-input 2.0.0-alpha.220 → 2.0.0-alpha.221

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.
Files changed (2) hide show
  1. package/dist/index.es.js +3 -3
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -203,7 +203,7 @@ var l = class extends o {
203
203
  this.$el.innerHTML = "", e.length > 0 && e.forEach((e) => {
204
204
  let t = e.cloneNode(!0);
205
205
  this.$el.appendChild(t);
206
- });
206
+ }), this.$el.value && this.internals?.setFormValue(this.formData());
207
207
  };
208
208
  }
209
209
  connectedCallback() {
@@ -349,8 +349,8 @@ var p = class e extends o {
349
349
  }), t === a.ERROR ? (this.$statusTextSlot.classList.toggle("error"), this.internals && (this.internals.ariaInvalid = "true"), this.$statusTextSlot.classList.remove("success")) : t === a.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();
350
350
  }
351
351
  formData() {
352
- let e = new FormData(), t = this.getAttribute("name");
353
- return t && e.append(t, this.getValue()), e;
352
+ let e = new FormData(), t = this.getAttribute("name"), n = this.getValue();
353
+ return t && n && e.append(t, n), e;
354
354
  }
355
355
  formResetCallback() {
356
356
  this.setValue("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-input",
3
- "version": "2.0.0-alpha.220",
3
+ "version": "2.0.0-alpha.221",
4
4
  "description": "Input component for the Proximus Design System",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",