mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 14:53:45 -04:00
Fixed bug in scrollspy
This commit is contained in:
@@ -67,7 +67,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
var toc = new Sidebar('.md-sidebar--secondary');
|
||||
toc.listen();
|
||||
|
||||
var spy = new ScrollSpy('.md-nav--toc .md-nav__link');
|
||||
var spy = new ScrollSpy('.md-sidebar--secondary .md-nav--secondary .md-nav__link');
|
||||
spy.listen();
|
||||
|
||||
window.addEventListener('resize', handler);
|
||||
|
||||
Reference in New Issue
Block a user