MCPcopy Create free account
hub / github.com/angular/components / reset

Method reset

src/cdk/text-field/autosize.ts:341–347  ·  view source on GitHub ↗

* Resets the textarea to its original size

()

Source from the content-addressed store, hash-verified

339 * Resets the textarea to its original size
340 */
341 reset() {
342 // Do not try to change the textarea, if the initialHeight has not been determined yet
343 // This might potentially remove styles when reset() is called before ngAfterViewInit
344 if (this._initialHeight !== undefined) {
345 this._textareaElement.style.height = this._initialHeight;
346 }
347 }
348
349 _noopInputHandler() {
350 // no-op handler that ensures we're running change detection on input events.

Callers 1

enabledMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected