debian-mirror-gitlab/app/assets/javascripts/behaviors/autosize.js
2017-09-10 17:25:29 +05:30

8 lines
222 B
JavaScript

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