After a little digging...
The documentation is wrong. As this question points out, you're supposed to use .scrollspy()
on the content, not the nav.
But then how do you target the correct nav?
It turns out, you have to target the parent of the ul.nav
, and you can pass it to .scrollspy({target: '.navparent'});
like so.
Hope this helps someone!