Unverified Commit 63a34880 authored by lauriii's avatar lauriii
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
......@@ -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');
}
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment