Mobile menu problem

Well, it seems a bit much.

The accordion was already working, so I personally would focus on leaving things as they were, and just adding the event listener to handle closing the menu.

This is all you need.

document.addEventListener('click', function (e) {
  const anchor = e.target.closest('.nav_v a');
  if (anchor) {
    document.querySelector('label[data-overlay="T1"]').click();
  }
}, true);
1 Like

Hi Matt, that did it :person_cartwheeling:
Thanks again!!!