We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6688c86 commit 16b5323Copy full SHA for 16b5323
packages/vuepress-theme-reco/components/SubSidebar.vue
@@ -12,7 +12,7 @@ export default {
12
const active = isActive(this.$route, this.$page.path + '#' + header.slug)
13
if (active) {
14
setTimeout(() => {
15
- document.querySelector(`.reco-${header.slug}`).scrollIntoView()
+ document.querySelector(`.reco-side-${header.slug}`).scrollIntoView()
16
}, 300)
17
}
18
return active
@@ -32,7 +32,7 @@ export default {
32
attr: { key: header.title }
33
}, [
34
h('router-link', {
35
- class: { 'sidebar-link': true, [`reco-${header.slug}`]: true },
+ class: { 'sidebar-link': true, [`reco-side-${header.slug}`]: true },
36
props: { to: `${this.$page.path}#${header.slug}` }
37
}, header.title)
38
])
0 commit comments