diff --git a/keepassxc-browser/content/autocomplete.js b/keepassxc-browser/content/autocomplete.js index e382d0c..c2e412a 100644 --- a/keepassxc-browser/content/autocomplete.js +++ b/keepassxc-browser/content/autocomplete.js @@ -200,6 +200,11 @@ class Autocomplete { this.closeList(); } } else if (e.key === 'Tab') { + // Return if the list is not open + if (items.length === 0) { + return; + } + // Return if value is not in the list if (inputField.value !== '' && !this.elements.some(c => c.value === inputField.value)) { this.closeList();