Skip to content

Commit

Permalink
keep focus when fill in
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 29, 2023
1 parent 7af3a3f commit 99927b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ class Autocomplete {
newChild.classList.add(...["d-flex", "justify-content-between"]);
fillIn.addEventListener("click", (event) => {
this._searchInput.value = item.label;
this._searchInput.focus(); // focus back to keep editing
});
}

Expand Down

0 comments on commit 99927b1

Please sign in to comment.