Skip to content

Commit 9cc18b2

Browse files
authored
fix(input-group): theme not read from stylesheet (#14639)
1 parent 5ab733b commit 9cc18b2

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

projects/igniteui-angular/src/lib/input-group/input-group.component.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -442,15 +442,11 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterViewCheck
442442

443443
/** @hidden @internal */
444444
public ngAfterViewChecked() {
445-
if (!this._theme) {
446-
const theme = this.theme ?? this.themeService.getComponentTheme(this.element);
447-
448-
if (theme) {
449-
Promise.resolve().then(() => {
450-
this._theme$.next(theme);
451-
this.cdr.markForCheck();
452-
});
453-
}
445+
const theme = this.themeService.getComponentTheme(this.element);
446+
447+
if (theme) {
448+
this._theme$.next(theme);
449+
this.cdr.markForCheck();
454450
}
455451
}
456452

0 commit comments

Comments
 (0)