Skip to content

Commit

Permalink
Set value in edit-text when init attributes
Browse files Browse the repository at this point in the history
It allows us to set a value with quotes in the edit-text.
  • Loading branch information
SweetDealer committed Jan 30, 2024
1 parent 6e95158 commit 039922b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/EditText/EditText.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -160,7 +161,6 @@ export default class EditText extends HTMLElement {
${minAttr}
${maxAttr}
type="${typeAttr}"
value="${value}"
></text-input>
</section>
</dialog>`;
Expand Down

0 comments on commit 039922b

Please sign in to comment.