Merge pull request #1743 from onthegocode/patch-1

Update autocomplete.js
This commit is contained in:
Sami Vänttinen 2022-10-24 07:22:45 +03:00 committed by GitHub
commit 9de3a21122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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