Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/anvilco/spectaql
Browse files Browse the repository at this point in the history
  • Loading branch information
newhouse committed Aug 7, 2023
2 parents 102d8be + 18ae867 commit 3ced245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/themes/default/javascripts/scroll-spy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function scrollSpy() {

var activeEl = document.querySelector(`.${ACTIVE_CLASS}`)
var nextEl = section
? document.querySelector('#nav a[href*=' + section.id + ']')
? document.querySelector('#nav a[href="#' + section.id + '"]')
: null

var parentNextEl = getParentSection(nextEl)
Expand Down

0 comments on commit 3ced245

Please sign in to comment.