You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build out some sections on the homepage of the template, I added anchor links to the navbar so a site user can jump between sections of the page.
When using the site on mobile, I noticed that the links work (they take you to the correct section of the page as I can see the url change) But the mobile menu does not disappear.
The BasicScripts.Astro file has an attach event and an onpageshow event that look to be handling the display property for the mobile menu.
I build out some sections on the homepage of the template, I added anchor links to the navbar so a site user can jump between sections of the page.
When using the site on mobile, I noticed that the links work (they take you to the correct section of the page as I can see the url change) But the mobile menu does not disappear.
The BasicScripts.Astro file has an attach event and an onpageshow event that look to be handling the display property for the mobile menu.
attachEvent('[data-aw-toggle-menu]', 'click', function (_, elem) {
elem.classList.toggle('expanded');
document.body.classList.toggle('overflow-hidden');
document.getElementById('header')?.classList.toggle('h-screen');
document.querySelector('#header nav')?.classList.toggle('hidden');
});
};
The text was updated successfully, but these errors were encountered: