fix modals not being initialized after table interaction

closes #304
This commit is contained in:
Felix Hamann 2019-02-22 23:04:09 +01:00
parent 1999b494c3
commit 695d0a9978
2 changed files with 4 additions and 1 deletions

View File

@ -195,6 +195,9 @@
Array.from(wrapper.querySelectorAll('form')).forEach(function(form) {
window.utils.setup('form', form);
});
Array.from(wrapper.querySelectorAll('.modal')).forEach(function(modal) {
window.utils.setup('modal', modal);
});
}
init();

View File

@ -3,7 +3,7 @@
window.utils = window.utils || {};
var JS_INITIALIZED_CLASS = 'js-initialized';
var JS_INITIALIZED_CLASS = 'js-modal-initialized';
var MODAL_OPEN_CLASS = 'modal--open';
var MODAL_TRIGGER_CLASS = 'modal__trigger';
var MODAL_CLOSABLE_FLAG = 'closeable';