* Resets the textarea to its original size
()
| 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. |