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

8 lines
222 B
JavaScript

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