From 5cf94f2a16a0242448a1d2599e67d1ea4804d158 Mon Sep 17 00:00:00 2001 From: Sergey Andrievskiy Date: Tue, 16 Oct 2018 19:54:34 +0300 Subject: [PATCH] fix(select): run change detection after setting initial value (#898) Fixes ExpressionChangedAfterItHasBeenCheckedError. --- src/framework/theme/components/select/select.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/framework/theme/components/select/select.component.ts b/src/framework/theme/components/select/select.component.ts index 94d1e5efb9..5b54ba9b3a 100644 --- a/src/framework/theme/components/select/select.component.ts +++ b/src/framework/theme/components/select/select.component.ts @@ -327,6 +327,7 @@ export class NbSelectComponent implements OnInit, AfterViewInit, AfterContent ngAfterContentInit() { if (this.queue) { this.writeValue(this.queue); + this.cd.detectChanges(); } }