diff --git a/public/js/app.js b/public/js/app.js index 711f5de..86d380e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -75,7 +75,7 @@ document.addEventListener('alpine:init', () => { }, autocompleteItem(evt) { - if (this.currentWord !== '') { + if (this.items.length > 0) { this.autocompleteSuggestion(); evt.preventDefault(); }