Skip to content

Commit

Permalink
Fixed #9561 - MultiSelect not working when Objects contain property "…
Browse files Browse the repository at this point in the history
…value"
  • Loading branch information
cagataycivici committed Nov 30, 2020
1 parent 81446da commit 8cabc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV
this.updateFilledState();
}

isSelected(value) {
return this.findSelectionIndex(value) != -1;
isSelected(option) {
return this.findSelectionIndex(this.getOptionValue(option)) != -1;
}

findSelectionIndex(val: any): number {
Expand Down

0 comments on commit 8cabc6d

Please sign in to comment.