@wavelengthusaf/components 3.3.6 → 3.3.7
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/README.md +8 -3
- package/dist/cjs/index.cjs +3 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +3 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1790,9 +1790,9 @@ var WavelengthInput = class extends HTMLElement {
|
|
|
1790
1790
|
this._debounceValidate = () => {
|
|
1791
1791
|
};
|
|
1792
1792
|
this._debounceTimeout = null;
|
|
1793
|
-
this.internals = null;
|
|
1794
1793
|
this._onInput = () => {
|
|
1795
1794
|
this.setAttribute("value", this.inputEl.value);
|
|
1795
|
+
this.internals.setFormValue(this.inputEl.value);
|
|
1796
1796
|
this.dispatchEvent(
|
|
1797
1797
|
new CustomEvent("inputChange", {
|
|
1798
1798
|
bubbles: true,
|
|
@@ -1837,6 +1837,7 @@ var WavelengthInput = class extends HTMLElement {
|
|
|
1837
1837
|
})
|
|
1838
1838
|
);
|
|
1839
1839
|
};
|
|
1840
|
+
this.internals = this.attachInternals();
|
|
1840
1841
|
const shadow = this.attachShadow({ mode: "open" });
|
|
1841
1842
|
shadow.appendChild(template3.content.cloneNode(true));
|
|
1842
1843
|
this.inputEl = document.createElement("input");
|
|
@@ -1846,9 +1847,6 @@ var WavelengthInput = class extends HTMLElement {
|
|
|
1846
1847
|
this.clearButtonEl.addEventListener("click", this._onClearClick);
|
|
1847
1848
|
shadow.querySelector(".input-wrapper").appendChild(this.inputEl);
|
|
1848
1849
|
shadow.appendChild(this.placeholderStyleEl);
|
|
1849
|
-
if (this.attachInternals) {
|
|
1850
|
-
this.internals = this.attachInternals();
|
|
1851
|
-
}
|
|
1852
1850
|
}
|
|
1853
1851
|
static get observedAttributes() {
|
|
1854
1852
|
return [
|
|
@@ -2225,6 +2223,7 @@ var WavelengthInput = class extends HTMLElement {
|
|
|
2225
2223
|
val ? this.setAttribute("clearable", "") : this.removeAttribute("clearable");
|
|
2226
2224
|
}
|
|
2227
2225
|
};
|
|
2226
|
+
WavelengthInput.formAssociated = true;
|
|
2228
2227
|
if (!customElements.get("wavelength-input")) {
|
|
2229
2228
|
customElements.define("wavelength-input", WavelengthInput);
|
|
2230
2229
|
}
|