Skip to content

Commit 8fded54

Browse files
committed
Hide mobile navigation on click
1 parent 0cb14ce commit 8fded54

File tree

1 file changed

+1
-0
lines changed
  • site/themes/arangodb-docs-theme/static/js

1 file changed

+1
-0
lines changed

site/themes/arangodb-docs-theme/static/js/theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ function handleDocumentClick(event) {
557557
// Menu link clicks
558558
if (target.classList.contains("link-nav")) {
559559
event.preventDefault();
560+
target.closest(".main-nav").classList.remove("active");
560561
document.querySelectorAll(".link-nav-active").forEach(el => el.classList.remove("link-nav-active"));
561562
target.classList.add("link-nav-active");
562563
closeAllEntries();

0 commit comments

Comments
 (0)