From 6c707c396fd9f1667092399818388c20a7cf5790 Mon Sep 17 00:00:00 2001 From: Sidhanshu Monga Date: Sat, 4 Apr 2020 06:39:31 +0530 Subject: [PATCH] Update autosize.directive.ts --- lib/src/autosize.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/autosize.directive.ts b/lib/src/autosize.directive.ts index 7285337..13124c0 100644 --- a/lib/src/autosize.directive.ts +++ b/lib/src/autosize.directive.ts @@ -31,7 +31,7 @@ export class AutosizeDirective implements AfterViewInit, DoCheck { } @HostListener('input') - private resize() { + public resize() { const textarea = this.elem.nativeElement as HTMLTextAreaElement; // Calculate border height which is not included in scrollHeight const borderHeight = textarea.offsetHeight - textarea.clientHeight;