IMPR: set element accesable ui attribute

This commit is contained in:
Tony Air 2021-09-13 00:48:37 +02:00
parent 5e23b21cac
commit af30a8ec33

View File

@ -4,6 +4,7 @@ import Datepicker from 'vanillajs-datepicker/Datepicker';
const init = () => {
document.querySelectorAll('.js-calendar').forEach((el, i) => {
const picker = new Datepicker(el);
el.ui = picker;
});
};