We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34e038 commit 8a11d14Copy full SHA for 8a11d14
packages/@vuepress/plugin-active-header-links/clientRootMixin.js
@@ -40,12 +40,12 @@ export default {
40
41
const routeHash = decodeURIComponent(this.$route.hash)
42
if (isActive && routeHash !== decodeURIComponent(anchor.hash)) {
43
- let activeAnchor = anchor
+ const activeAnchor = anchor
44
// check if anchor is at the bottom of the page to keep $route.hash consistent
45
if (bottomY === scrollHeight) {
46
for (let j = i + 1; j < anchors.length; j++) {
47
if (routeHash === decodeURIComponent(anchors[j].hash)) {
48
- activeAnchor = anchors[j]
+ return
49
}
50
51
0 commit comments