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
  • #11477
Closed
Open
Issue created Nov 13, 2013 by Administrator@rootContributor

activate.bs.scrollspy not being called with a dropdown?

Created by: matchew

I have this Table of Contents in a dropdown and I want to use scrollspy() to keep track of where I am in the document. I often have hundreds of pages so a dropdown with and `overflow-y: auto;`` makes some design sense at this point. However, I also would like to do some other things when the page changes. Notably Change Page # on the dropdown button to the actual page. According to the documentation I would use something like the following:

$('#myScrollspy').on('activate.bs.scrollspy', function () {
  // do something…
});

however, this fails to work. see the following fiddle: http://jsfiddle.net/2W8AC/

Assignee
Assign to
Time tracking