mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
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:
commit
1b4fc151d4
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ class Autocomplete {
|
||||||
|
|
||||||
async showList(inputField) {
|
async showList(inputField) {
|
||||||
this.closeList();
|
this.closeList();
|
||||||
|
|
||||||
|
// Return if there are no credentials
|
||||||
|
if (this.elements.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.input = inputField;
|
this.input = inputField;
|
||||||
this.input.select();
|
this.input.select();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue