site: remove focus event from search
This commit is contained in:
parent
e28a2e2239
commit
301b28e7e1
2 changed files with 0 additions and 5 deletions
|
@ -42,10 +42,6 @@ document.addEventListener('alpine:init', () => {
|
||||||
this.open = true;
|
this.open = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchSuggestionsOnFocus(evt) {
|
|
||||||
this.fetchSuggestions();
|
|
||||||
},
|
|
||||||
|
|
||||||
fetchSuggestionsOnInput(evt) {
|
fetchSuggestionsOnInput(evt) {
|
||||||
this.cursor = evt.target.selectionStart;
|
this.cursor = evt.target.selectionStart;
|
||||||
this.fetchSuggestions();
|
this.fetchSuggestions();
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
<input name="tags" value="<%= param "tags" %>" placeholder="Search tags..."
|
<input name="tags" value="<%= param "tags" %>" placeholder="Search tags..."
|
||||||
x-ref="search"
|
x-ref="search"
|
||||||
x-model="search"
|
x-model="search"
|
||||||
@focus="fetchSuggestionsOnFocus"
|
|
||||||
@input.debounce="fetchSuggestionsOnInput"
|
@input.debounce="fetchSuggestionsOnInput"
|
||||||
@keydown.tab="autocompleteItem"
|
@keydown.tab="autocompleteItem"
|
||||||
@keydown.enter="autocompleteItem"
|
@keydown.enter="autocompleteItem"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue