@proximus/lavender-input 1.4.18-alpha.2 → 1.4.18-alpha.21

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() {
@@ -356,8 +356,8 @@ var p = class e extends o {
356
356
  }), 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();
357
357
  }
358
358
  formData() {
359
- let e = new FormData(), t = this.getAttribute("name");
360
- return t && e.append(t, this.getValue()), e;
359
+ let e = new FormData(), t = this.getAttribute("name"), n = this.getValue();
360
+ return t && n && e.append(t, n), e;
361
361
  }
362
362
  formResetCallback() {
363
363
  this.setValue("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-input",
3
- "version": "1.4.18-alpha.2",
3
+ "version": "1.4.18-alpha.21",
4
4
  "description": "Input component for the Proximus Design System",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",