Skip to content

Commit

Permalink
fix: change the CSS selector to support mergeNavbar option (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
hqshi authored Sep 30, 2021
1 parent 47c8dd7 commit ae6150e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function pagination (vm, { crossChapter, routerMode }) {
const path = routerMode === ROUTER_MODE.HISTORY ?
vm.route.path :
`#${vm.route.path}`
const all = toArray(query.all('.sidebar li a')).filter((element) => !matches(element, '.section-link'))
const all = toArray(query.all('.sidebar-nav li a')).filter((element) => !matches(element, '.section-link'))
const active = all.find(isALinkTo(path))
const group = toArray((closest(active, 'ul') || {}).children)
.filter((element) => element.tagName.toUpperCase() === 'LI')
Expand Down

0 comments on commit ae6150e

Please sign in to comment.