Skip to content

Commit

Permalink
🐛 Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Feb 13, 2022
1 parent a07c828 commit a4f2fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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`;
});
}

Expand Down

0 comments on commit a4f2fb7

Please sign in to comment.