Merge pull request #1208 from keepassxreboot/fix/autocomplete_event_init

Do not initialize Autocomplete input field events twice
This commit is contained in:
Sami Vänttinen 2021-02-04 07:06:17 +02:00 committed by GitHub
commit 8dd789f3c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View file

@ -36,15 +36,18 @@ class Autocomplete {
this.autoSubmit = autoSubmit;
this.input = input;
this.started = true;
input.addEventListener('click', ev => this.click(ev, this.input));
input.addEventListener('keydown', ev => this.keyPress(ev));
input.setAttribute('autocomplete', 'off');
if (!this.started) {
input.addEventListener('click', ev => this.click(ev, this.input));
input.addEventListener('keydown', ev => this.keyPress(ev));
input.setAttribute('autocomplete', 'off');
}
if (showListInstantly) {
this.showList(input);
}
this.started = true;
}
mouseOver(e, div, item) {

View file

@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "KeePassXC-Browser",
"version": "1.7.5",
"version_name": "1.7.5",
"version": "1.7.6",
"version_name": "1.7.6",
"description": "__MSG_extensionDescription__",
"author": "KeePassXC Team",
"icons": {

View file

@ -1,6 +1,6 @@
{
"name": "KeePassXC-Browser",
"version": "1.7.4",
"version": "1.7.6",
"description": "KeePassXC-Browser",
"main": "build.js",
"devDependencies": {