Skip to content

Commit

Permalink
fix(ios): pasting in search bar does not trigger autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Oct 21, 2024
1 parent dd345d4 commit 0e85227
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ class Search {
}
});

document.getElementById(id.searchInput).addEventListener("paste", () => {
this.#suggestAndDisplay();
document.getElementById(id.searchInput).addEventListener("textInput", () => {
setTimeout( () => {
this.#suggestAndDisplay();
}, 100);
});

document.getElementById(id.searchInput).addEventListener("click", () => {
Expand Down

0 comments on commit 0e85227

Please sign in to comment.