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

9 lines
215 B
JavaScript
Raw Normal View History

import Autosize from 'autosize';
2016-07-24 16:45:11 -04:00
document.addEventListener('DOMContentLoaded', () => {
const autosizeEls = document.querySelectorAll('.js-autosize');
2016-07-24 16:45:11 -04:00
Autosize(autosizeEls);
Autosize.update(autosizeEls);
});