Skip to content

Commit

Permalink
Merge branch 'main' of github.com:LIlGG/halo-theme-sakura
Browse files Browse the repository at this point in the history
  • Loading branch information
LIlGG committed Dec 5, 2024
2 parents b51c6bb + d6da117 commit 82b2340
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/module/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,12 @@ export class Events {
});

document.querySelector(".container")?.addEventListener("click", (event) => {
event.stopPropagation();
event.preventDefault();
this.closeMobileNav();
const siteSidebarElement = document.querySelector(".site-sidebar");
if (siteSidebarElement && siteSidebarElement.classList.contains("open")) {
event.stopPropagation();
event.preventDefault();
this.closeMobileNav();
}
});

document.querySelectorAll(".menu-root .menu-item").forEach((element) => {
Expand Down
Loading

0 comments on commit 82b2340

Please sign in to comment.