updated to materialize2

This commit is contained in:
marko
2023-04-22 12:06:25 +02:00
parent 293eb81714
commit f5ef53b53c
6 changed files with 76 additions and 60 deletions

View File

@@ -19,6 +19,7 @@ function initSelects() {
var selectElements = document.querySelectorAll('select');
// var selectInstances =
M.FormSelect.init(selectElements, {});
console.log('initSelect');
}
// Init SideNav menu
@@ -33,7 +34,8 @@ function initModals() {
var modalElements = document.querySelectorAll('.modal');
// var modalInstances =
M.Modal.init(modalElements, {
'onOpenEnd': initSelects
// @todo Temporary disabled. Normally the selects need to be init after the modal shows. MaterializeCss 2 seems to change this.
// 'onOpenEnd': initSelects
});
};