Skip to content

Commit

Permalink
Fix a bug where autosize doesn't trigger when you load the page
Browse files Browse the repository at this point in the history
  • Loading branch information
ymeynot45 committed Jul 6, 2022
1 parent bb4492c commit c4307ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ const Lobster = new _LobstersFunction();

onPageLoad(() => {
Lobster.curUser = document.body.getAttribute('data-username'); // hack
autosize(document.querySelectorAll('textarea'));

// Global Functions

Expand Down

0 comments on commit c4307ba

Please sign in to comment.