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