Fix issue #213 - Click on the blank space of the navigation ...

This commit is contained in:
prototypa
2023-08-08 09:03:52 -04:00
parent 106362a624
commit 11e335348e

View File

@ -35,14 +35,7 @@ import { UI_CONFIG } from '~/utils/config';
let lastKnownScrollPosition = window.scrollY;
let ticking = true;
attachEvent('#header nav', 'click', function () {
document.querySelector("[data-aw-toggle-menu]")?.classList.remove("expanded");
document.body.classList.remove("overflow-hidden");
document.getElementById("header")?.classList.remove("h-screen");
document.querySelector("#header nav")?.classList.add("hidden");
});
attachEvent('[data-aw-toggle-menu]', 'click', function () {
attachEvent('[data-aw-toggle-menu], #header nav', 'click', function () {
document.body.classList.toggle("overflow-hidden");
document.getElementById("header")?.classList.toggle("h-screen");
document.getElementById("header")?.classList.toggle("expanded");