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

This commit is contained in:
Marina Glancy 2024-09-03 20:52:24 +01:00
parent 0eacab846e
commit 62e776673a
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

View File

@ -813,7 +813,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();

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}}