Skip to content

Commit

Permalink
fix(select): run change detection after setting initial value (#898)
Browse files Browse the repository at this point in the history
Fixes ExpressionChangedAfterItHasBeenCheckedError.
  • Loading branch information
yggg authored and nnixaa committed Oct 16, 2018
1 parent 031b1e6 commit 5cf94f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/framework/theme/components/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export class NbSelectComponent<T> implements OnInit, AfterViewInit, AfterContent
ngAfterContentInit() {
if (this.queue) {
this.writeValue(this.queue);
this.cd.detectChanges();
}
}

Expand Down

0 comments on commit 5cf94f2

Please sign in to comment.