diff --git a/package.json b/package.json index 8cdfeda..fe78a2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elsci-io/ui-essential", - "version": "1.0.39", + "version": "1.0.40", "description": "Material Design components created for products built by elsci.io", "main": "src/index.js", "type": "module", diff --git a/src/EditText/EditText.js b/src/EditText/EditText.js index f60b18d..1d4543d 100644 --- a/src/EditText/EditText.js +++ b/src/EditText/EditText.js @@ -133,6 +133,7 @@ export default class EditText extends HTMLElement { this.#suffix = this.getAttribute("suffix"); if (this.hasAttribute("prefix")) this.#prefix = this.getAttribute("prefix"); + this.#children.input.value = this.value(); } #htmlTemplate() { @@ -160,7 +161,6 @@ export default class EditText extends HTMLElement { ${minAttr} ${maxAttr} type="${typeAttr}" - value="${value}" > `;