From a0a38b73a970f577fd5a415b10c59ef209b3a825 Mon Sep 17 00:00:00 2001 From: Greg Kass Date: Fri, 3 Nov 2017 10:58:14 -0400 Subject: [PATCH] fix checked searches improperly unchecking --- src/dropdown/dropdown.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dropdown/dropdown.component.ts b/src/dropdown/dropdown.component.ts index b80a9580..13c11faf 100644 --- a/src/dropdown/dropdown.component.ts +++ b/src/dropdown/dropdown.component.ts @@ -459,7 +459,7 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, OnDestro if (this.checkAllSearchRegister.has(this.filterControl.value)) { this.checkAllSearchRegister.delete(this.filterControl.value); this.checkAllSearchRegister.forEach(function(searchTerm) { - let filterOptions = this.applyFilters(this.options.filter(option => unCheckedOptions.includes(option.name)), searchTerm); + let filterOptions = this.applyFilters(this.options.filter(option => unCheckedOptions.includes(option.id)), searchTerm); this.addChecks(filterOptions); }.bind(this)); }