BigW Consortium Gitlab

autosize.js 215 Bytes
Newer Older
1
import Autosize from 'autosize';
Fatih Acet committed
2

3 4
document.addEventListener('DOMContentLoaded', () => {
  const autosizeEls = document.querySelectorAll('.js-autosize');
Fatih Acet committed
5

6 7
  Autosize(autosizeEls);
  Autosize.update(autosizeEls);
8
});