Skip to content

Commit

Permalink
Merge pull request #3069 from Akshat55/expressionchanged-input
Browse files Browse the repository at this point in the history
fix: refresh view after content is initialized
  • Loading branch information
zvonimirfras authored Nov 21, 2024
2 parents 8494242 + a399c44 commit ee240f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/ng17/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",
Expand Down
7 changes: 6 additions & 1 deletion src/input/text-input-label.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
AfterContentInit,
AfterViewInit,
ChangeDetectorRef,
Component,
Expand Down Expand Up @@ -102,7 +103,7 @@ import {
</div>
`
})
export class TextInputLabelComponent implements AfterViewInit {
export class TextInputLabelComponent implements AfterViewInit, AfterContentInit {
/**
* Used to build the id of the input item associated with the `Label`.
*/
Expand Down Expand Up @@ -210,6 +211,10 @@ export class TextInputLabelComponent implements AfterViewInit {
}
}

ngAfterContentInit() {
this.changeDetectorRef.detectChanges();
}

public isTemplate(value) {
return value instanceof TemplateRef;
}
Expand Down

0 comments on commit ee240f2

Please sign in to comment.