From a4f2fb768578342f287b57204d1910b3e28da95c Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Sun, 13 Feb 2022 12:41:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 5f795a7..25765f6 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ function Autosize(Alpine) { - Alpine.directive('autosize', () => { - $el.style.height = '4px'; - $el.style.height = `${$el.scrollHeight}px`; + Alpine.directive('autosize', (el) => { + el.style.height = '4px'; + el.style.height = `${el.scrollHeight}px`; }); }