MDL-83002 theme_boost: tell behat to wait when initialising drawers

This commit is contained in:
Marina Glancy
2024-10-03 15:58:14 +01:00
parent 886f5c8465
commit eb07eaef1e
4 changed files with 7 additions and 4 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -812,7 +812,7 @@ const registerListeners = () => {
document.addEventListener('focusin', preventOverlap);
document.addEventListener('focusout', preventOverlap);
window.addEventListener('resize', debounce(closeOnResizeListener, 400));
window.addEventListener('resize', debounce(closeOnResizeListener, 400, {pending: true}));
};
registerListeners();
+4 -1
View File
@@ -57,5 +57,8 @@
</div>
</div>
{{#js}}
require(['theme_boost/drawers']);
M.util.js_pending('theme_boost/drawers:load');
require(['theme_boost/drawers'], function() {
M.util.js_complete('theme_boost/drawers:load');
});
{{/js}}