[Library | develop]: search-input.component.ts: [Bug fix] Added cdr.detectChanges() call on ngAfterViewInit, to solve expressionChangedAfterItHasBeenChecked error.
This commit is contained in:
parent
9226a5975d
commit
f0a48cd2e1
|
@ -90,6 +90,7 @@ export class SearchInputComponent implements OnInit, AfterViewInit {
|
|||
ngAfterViewInit() {
|
||||
if(typeof document !== 'undefined') {
|
||||
this.ratio = Number.parseFloat(getComputedStyle(this.searchInput.nativeElement).getPropertyValue('--search-input-icon-ratio'));
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue