debian-mirror-gitlab/app/assets/javascripts/behaviors/autosize.js

9 lines
215 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import Autosize from 'autosize';
2016-09-13 17:45:13 +05:30
2017-09-10 17:25:29 +05:30
document.addEventListener('DOMContentLoaded', () => {
const autosizeEls = document.querySelectorAll('.js-autosize');
2016-09-13 17:45:13 +05:30
2018-03-17 18:26:18 +05:30
Autosize(autosizeEls);
Autosize.update(autosizeEls);
2017-08-17 22:00:37 +05:30
});