diff options
-rw-r--r-- | keepassxc-browser/content/autocomplete.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/keepassxc-browser/content/autocomplete.js b/keepassxc-browser/content/autocomplete.js index 8a93d36..bd2d239 100644 --- a/keepassxc-browser/content/autocomplete.js +++ b/keepassxc-browser/content/autocomplete.js @@ -206,6 +206,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(); |