Skip to content

Commit 9885e4b

Browse files
committed
fix: refresh view after content is initialized
Signed-off-by: Akshat Patel <[email protected]>
1 parent 8494242 commit 9885e4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/input/text-input-label.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
AfterContentInit,
23
AfterViewInit,
34
ChangeDetectorRef,
45
Component,
@@ -102,7 +103,7 @@ import {
102103
</div>
103104
`
104105
})
105-
export class TextInputLabelComponent implements AfterViewInit {
106+
export class TextInputLabelComponent implements AfterViewInit, AfterContentInit {
106107
/**
107108
* Used to build the id of the input item associated with the `Label`.
108109
*/
@@ -210,6 +211,10 @@ export class TextInputLabelComponent implements AfterViewInit {
210211
}
211212
}
212213

214+
ngAfterContentInit() {
215+
this.changeDetectorRef.detectChanges();
216+
}
217+
213218
public isTemplate(value) {
214219
return value instanceof TemplateRef;
215220
}

0 commit comments

Comments
 (0)