mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-06 07:43:12 +02:00
fix unhighlightAll performance issue (#648)
This commit is contained in:
parent
57807e88f6
commit
37db45e651
|
@ -1451,7 +1451,7 @@ class Choices {
|
||||||
this.hideDropdown();
|
this.hideDropdown();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const hasHighlightedItems = this._store.highlightedActiveItems;
|
const hasHighlightedItems = this._store.highlightedActiveItems.length > 0;
|
||||||
|
|
||||||
if (hasHighlightedItems) {
|
if (hasHighlightedItems) {
|
||||||
this.unhighlightAll();
|
this.unhighlightAll();
|
||||||
|
|
Loading…
Reference in a new issue