Skip to content

Commit 4063a56

Browse files
Patterns Blog all links in the drawer stopped from Event Bubbling
through parent
1 parent 56cc344 commit 4063a56

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

quartz.layout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export const sharedPageComponents: SharedLayout = {
1313
"About Me": "https://github.com/PrathameshDhande22"
1414
}
1515
}),
16-
Component.Darkmode()
16+
Component.Darkmode(),
17+
Component.Search()
1718
],
1819
head: Component.Head(),
1920
header: [Component.MobileOnly(

quartz/components/scripts/drawer.inline.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ drawerele?.addEventListener("click", () => {
66

77
const isdrawerActive: boolean = drawerele.classList.contains("active")
88
assignActiveClassToDrawerButton(isdrawerActive)
9+
})
10+
11+
const toccontentele = document.querySelector(".toc")
12+
toccontentele?.addEventListener("click", (e) => {
13+
e.stopPropagation();
914
})

0 commit comments

Comments
 (0)