Skip to content

Commit ae6150e

Browse files
authored
fix: change the CSS selector to support mergeNavbar option (#28)
1 parent 47c8dd7 commit ae6150e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function pagination (vm, { crossChapter, routerMode }) {
6868
const path = routerMode === ROUTER_MODE.HISTORY ?
6969
vm.route.path :
7070
`#${vm.route.path}`
71-
const all = toArray(query.all('.sidebar li a')).filter((element) => !matches(element, '.section-link'))
71+
const all = toArray(query.all('.sidebar-nav li a')).filter((element) => !matches(element, '.section-link'))
7272
const active = all.find(isALinkTo(path))
7373
const group = toArray((closest(active, 'ul') || {}).children)
7474
.filter((element) => element.tagName.toUpperCase() === 'LI')

0 commit comments

Comments
 (0)