From 8662741c50abda4b09598e651e24497df70d02e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20=C3=87ivici?= Date: Tue, 19 Apr 2016 10:55:42 +0300 Subject: [PATCH] Fixed #218 --- components/dropdown/dropdown.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/dropdown/dropdown.ts b/components/dropdown/dropdown.ts index 6968a54d2ed..9f01526e32a 100644 --- a/components/dropdown/dropdown.ts +++ b/components/dropdown/dropdown.ts @@ -151,14 +151,14 @@ export class Dropdown implements OnInit,AfterViewInit,AfterViewChecked,DoCheck,O this.optionsChanged = false; } } - + writeValue(value: any) : void { this.value = value; this.updateLabel(); - - if(this.initialized) { + + if(this.initialized && !this.optionsChanged) { this.highlightValue(); - } + } } registerOnChange(fn: Function): void {