mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Update autocomplete.js
Updating for loop to modern forEach method to loop over node list and remove class.
This commit is contained in:
parent
19595526cf
commit
54609a3ed8
1 changed files with 1 additions and 3 deletions
|
|
@ -147,9 +147,7 @@ class Autocomplete {
|
|||
|
||||
deselectItem() {
|
||||
const items = this.list.querySelectorAll('div.kpxcAutocomplete-active');
|
||||
for (const item of items) {
|
||||
item.classList.remove('kpxcAutocomplete-active');
|
||||
}
|
||||
items.forEach(item => item.classList.remove('kpxcAutocomplete-active'));
|
||||
}
|
||||
|
||||
closeList() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue