Skip to content

Commit

Permalink
Call validation on clear TypeAheadInput
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetDealer committed Sep 6, 2024
1 parent 05b262f commit ac90184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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.70",
"version": "1.0.71",
"description": "Material Design components created for products built by elsci.io",
"main": "src/index.js",
"type": "module",
Expand Down
1 change: 1 addition & 0 deletions src/TypeAheadInput/TypeAheadInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default class TypeAheadInput extends HTMLElement {

#onClearIconClick() {
this.value = {displayName: ""};
this.#validateAndNotify();
this.#inputElement.querySelector('input').focus();
}

Expand Down

0 comments on commit ac90184

Please sign in to comment.