mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1208 from keepassxreboot/fix/autocomplete_event_init
Do not initialize Autocomplete input field events twice
This commit is contained in:
commit
8dd789f3c8
3 changed files with 10 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "KeePassXC-Browser",
|
||||
"version": "1.7.4",
|
||||
"version": "1.7.6",
|
||||
"description": "KeePassXC-Browser",
|
||||
"main": "build.js",
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue