Skip to content

Commit

Permalink
fix: don't change url hash while scrolling (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Jul 14, 2022
1 parent b86e9fe commit 0826944
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/client/theme-default/composables/outline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export function useActiveAnchor(
const [isActive, hash] = isAnchorActive(i, anchor, nextAnchor)

if (isActive) {
history.replaceState(null, document.title, hash ? hash : ' ')
activateLink(hash)
return
}
Expand Down

0 comments on commit 0826944

Please sign in to comment.