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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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');
+2 −1
Original line number Diff line number Diff line
@@ -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');
      }
    });
  }