debian-mirror-gitlab/app/assets/javascripts/behaviors/autosize.js
2018-03-17 18:26:18 +05:30

9 lines
215 B
JavaScript

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