From 5c3a4e186572c379aa5a94c0046ea73e2845f47a Mon Sep 17 00:00:00 2001 From: Mateusz Kocz Date: Tue, 17 Jan 2017 16:00:49 +0100 Subject: [PATCH] fix(select): compare the ID of a SelectItem instead of its text (#358) --- components/select/select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/select/select.ts b/components/select/select.ts index 5d6921a2..55c36050 100755 --- a/components/select/select.ts +++ b/components/select/select.ts @@ -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 {