Skip to content

Commit

Permalink
Merge pull request #316 from GregKass/uncheck-bug
Browse files Browse the repository at this point in the history
fix checked searches improperly unchecking
  • Loading branch information
softsimon authored Nov 5, 2017
2 parents aa47c1d + a0a38b7 commit 84a68a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown/dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 84a68a0

Please sign in to comment.