Skip to content

Commit 0826944

Browse files
authored
fix: don't change url hash while scrolling (#991)
1 parent b86e9fe commit 0826944

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/client/theme-default/composables/outline.ts

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export function useActiveAnchor(
120120
const [isActive, hash] = isAnchorActive(i, anchor, nextAnchor)
121121

122122
if (isActive) {
123-
history.replaceState(null, document.title, hash ? hash : ' ')
124123
activateLink(hash)
125124
return
126125
}

0 commit comments

Comments
 (0)