From 652df0c670eea0405c83eee47ece5805033e8796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:58:44 +0300 Subject: [PATCH] Fixed #14298 - Remove afterViewCheck to avoid affecting components with virtualScroll --- src/app/components/inputtextarea/inputtextarea.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/components/inputtextarea/inputtextarea.ts b/src/app/components/inputtextarea/inputtextarea.ts index 2ba3ee128e5..87cf924c2f0 100755 --- a/src/app/components/inputtextarea/inputtextarea.ts +++ b/src/app/components/inputtextarea/inputtextarea.ts @@ -14,7 +14,7 @@ import { Subscription } from 'rxjs'; '[class.p-inputtextarea-resizable]': 'autoResize' } }) -export class InputTextarea implements OnInit, AfterViewInit, AfterViewChecked, OnDestroy { +export class InputTextarea implements OnInit, AfterViewInit, OnDestroy { /** * When present, textarea size changes as being typed. * @group Props @@ -51,10 +51,6 @@ export class InputTextarea implements OnInit, AfterViewInit, AfterViewChecked, O } } - ngAfterViewChecked() { - this.updateState(); - } - ngAfterViewInit() { if (this.autoResize) this.resize();