From 9885e4bebfa4db67c3e276d2b40274212a08c7ec Mon Sep 17 00:00:00 2001 From: Akshat Patel Date: Thu, 21 Nov 2024 14:04:45 -0500 Subject: [PATCH 1/2] fix: refresh view after content is initialized Signed-off-by: Akshat Patel --- src/input/text-input-label.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input/text-input-label.component.ts b/src/input/text-input-label.component.ts index 46cf0cd934..6d1c761641 100644 --- a/src/input/text-input-label.component.ts +++ b/src/input/text-input-label.component.ts @@ -1,4 +1,5 @@ import { + AfterContentInit, AfterViewInit, ChangeDetectorRef, Component, @@ -102,7 +103,7 @@ import { ` }) -export class TextInputLabelComponent implements AfterViewInit { +export class TextInputLabelComponent implements AfterViewInit, AfterContentInit { /** * Used to build the id of the input item associated with the `Label`. */ @@ -210,6 +211,10 @@ export class TextInputLabelComponent implements AfterViewInit { } } + ngAfterContentInit() { + this.changeDetectorRef.detectChanges(); + } + public isTemplate(value) { return value instanceof TemplateRef; } From a399c44d6286521ddbd48acf39304c08e355272c Mon Sep 17 00:00:00 2001 From: Akshat Patel Date: Thu, 21 Nov 2024 14:32:46 -0500 Subject: [PATCH 2/2] test: increase warning budget Signed-off-by: Akshat Patel --- integration/ng17/angular.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/ng17/angular.json b/integration/ng17/angular.json index 79d105cee0..168eb3a27e 100644 --- a/integration/ng17/angular.json +++ b/integration/ng17/angular.json @@ -40,7 +40,7 @@ { "type": "initial", "maximumWarning": "500kb", - "maximumError": "1mb" + "maximumError": "2mb" }, { "type": "anyComponentStyle",