diff --git a/keepassxc-browser/content/autocomplete.js b/keepassxc-browser/content/autocomplete.js index e382d0c..8a93d36 100644 --- a/keepassxc-browser/content/autocomplete.js +++ b/keepassxc-browser/content/autocomplete.js @@ -60,6 +60,12 @@ class Autocomplete { async showList(inputField) { this.closeList(); + + // Return if there are no credentials + if (this.elements.length === 0) { + return; + } + this.input = inputField; this.input.select();