site: remove focus event from search

This commit is contained in:
Lucas Gabriel Vuotto 2025-04-28 13:48:07 +00:00
parent e28a2e2239
commit 301b28e7e1
2 changed files with 0 additions and 5 deletions

View file

@ -42,10 +42,6 @@ document.addEventListener('alpine:init', () => {
this.open = true;
},
fetchSuggestionsOnFocus(evt) {
this.fetchSuggestions();
},
fetchSuggestionsOnInput(evt) {
this.cursor = evt.target.selectionStart;
this.fetchSuggestions();

View file

@ -10,7 +10,6 @@
<input name="tags" value="<%= param "tags" %>" placeholder="Search tags..."
x-ref="search"
x-model="search"
@focus="fetchSuggestionsOnFocus"
@input.debounce="fetchSuggestionsOnInput"
@keydown.tab="autocompleteItem"
@keydown.enter="autocompleteItem"