Skip to content

Commit 23346e8

Browse files
authored
Merge pull request #192 from theshivay/fix-sidebar-links
Fix sidebar links not responding to full section clicks
2 parents 1f17f79 + 41276c8 commit 23346e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/nav/toc.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const Toc = ({ index, depth, visible }: Props) => {
6363
)}
6464
onClick={() => toggleExpansion(i)}
6565
>
66-
<div className={styles.item}>
67-
<a href={item.path} onClick={(e) => e.stopPropagation()}>
66+
<div className={styles.item} onClick={(e) => e.stopPropagation()}>
67+
<a href={item.path}>
6868
{item.document?.title}
6969
</a>
7070
{hasChildren(item) && (

0 commit comments

Comments
 (0)