Skip to content

Commit

Permalink
fix(select): compare the ID of a SelectItem instead of its text (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkocz authored and valorkin committed Jan 17, 2017
1 parent 95397f6 commit 5c3a4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export class SelectComponent implements OnInit, ControlValueAccessor {
}

protected isActive(value:SelectItem):boolean {
return this.activeOption.text === value.text;
return this.activeOption.id === value.id;
}

protected removeClick(value: SelectItem, event: any): void {
Expand Down

0 comments on commit 5c3a4e1

Please sign in to comment.