Skip to content

Commit 9c47662

Browse files
committed
fixup! fix(cdk/text-field): autosize text areas using the placeholder
1 parent 0cd8867 commit 9c47662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/text-field/autosize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {
159159
});
160160

161161
this._isViewInited = true;
162-
this._cacheTextareaPlaceholderHeight();
162+
this.resizeToFitContent(true);
163163
}
164164
}
165165

0 commit comments

Comments
 (0)