Skip to content

Commit

Permalink
[autocomplete] touch too
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 26, 2023
1 parent a92d1ac commit ec85a0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/autocomplete/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ function renderCompletions(element) {
setCompletion(element, key);
event.preventDefault();
});
li.addEventListener('touchstart', (event) => {
setCompletion(element, key);
event.preventDefault();
});
completions_el.appendChild(li);
});

Expand Down

0 comments on commit ec85a0b

Please sign in to comment.