Merge pull request #1443 from stefansundin/stop-selecting-contents

Do not select the contents of the text field when there are no credentials
This commit is contained in:
Sami Vänttinen 2021-11-09 19:50:05 +02:00 committed by GitHub
commit 1b4fc151d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();