Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #16441
Closed
Open
Issue created May 07, 2015 by Administrator@rootContributor

ScrollSpy works only on the body tag?

Created by: onethread

I've got an example here: http://jsfiddle.net/03sv47av/

As is, scrollspy will set up, but will not react to scrolling. But if you cut all the attributes from the first div and paste them to the body tag and re-run the example, scrollspy works perfectly.

You'll need to inspect the nav elements with your browser dev tools. When it works, the active classes will be dynamically applied as you scroll.

I've reread the docs about a zillion times now, and I can't seem to pinpoint where I'm going wrong.

Assignee
Assign to
Time tracking