site: fix propagation prevention on Enter and Tab keys

This commit is contained in:
Lucas Gabriel Vuotto 2025-04-28 19:27:37 +00:00
parent 3ea1283af8
commit 202c6fa878

View file

@ -75,7 +75,7 @@ document.addEventListener('alpine:init', () => {
}, },
autocompleteItem(evt) { autocompleteItem(evt) {
if (this.currentWord !== '') { if (this.items.length > 0) {
this.autocompleteSuggestion(); this.autocompleteSuggestion();
evt.preventDefault(); evt.preventDefault();
} }