gitlab-org--gitlab-foss/app/assets/javascripts/behaviors/autosize.js

8 lines
215 B
JavaScript

import Autosize from 'autosize';
document.addEventListener('DOMContentLoaded', () => {
const autosizeEls = document.querySelectorAll('.js-autosize');
Autosize(autosizeEls);
Autosize.update(autosizeEls);
});