Skip to content
Snippets Groups Projects
Unverified Commit 63a34880 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3173905 by nod_, ravi.shankar, kostyashupenko, mherchel: Olivero:...

Issue #3173905 by nod_, ravi.shankar, kostyashupenko, mherchel: Olivero: node.classList.remove() only supports one argument
parent bf1dd775
Branches
Tags
7 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards,!16Draft: Resolve #2081585 "History storage"
......@@ -90,7 +90,8 @@
window.addEventListener('resize', () => {
if (props.olivero.isDesktopNav()) {
toggleNav(props, false);
props.body.classList.remove('js-overlay-active', 'js-fixed');
props.body.classList.remove('js-overlay-active');
props.body.classList.remove('js-fixed');
}
});
}
......@@ -106,7 +107,7 @@
);
if (navWrapper) {
navWrapper.classList.add(`${navWrapperId}-processed`);
const olivero = Drupal.olivero;
const { olivero } = Drupal;
const navButton = context.querySelector('.mobile-nav-button');
const body = context.querySelector('body');
const overlay = context.querySelector('.overlay');
......
......@@ -62,7 +62,8 @@
window.addEventListener('resize', function () {
if (props.olivero.isDesktopNav()) {
toggleNav(props, false);
props.body.classList.remove('js-overlay-active', 'js-fixed');
props.body.classList.remove('js-overlay-active');
props.body.classList.remove('js-fixed');
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment