site: fix propagation prevention on Enter and Tab keys
This commit is contained in:
parent
3ea1283af8
commit
202c6fa878
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ document.addEventListener('alpine:init', () => {
|
|||
},
|
||||
|
||||
autocompleteItem(evt) {
|
||||
if (this.currentWord !== '') {
|
||||
if (this.items.length > 0) {
|
||||
this.autocompleteSuggestion();
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue