11 lines
328 B
JavaScript
11 lines
328 B
JavaScript
import Autosize from 'autosize';
|
|
import { waitForCSSLoaded } from '~/helpers/startup_css_helper';
|
|
|
|
waitForCSSLoaded(() => {
|
|
const autosizeEls = document.querySelectorAll('.js-autosize');
|
|
|
|
Autosize(autosizeEls);
|
|
Autosize.update(autosizeEls);
|
|
|
|
autosizeEls.forEach((el) => el.classList.add('js-autosize-initialized'));
|
|
});
|