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
  • #13394
Closed
Open
Issue created Apr 21, 2014 by Administrator@rootContributor

scrollspy documentation bug? -- scrollspy requires that the spied anchor be visible

Created by: fczuardi

Sometimes, if the nav items links to page anchors that are set like:

<a id="anchor-id"></a>

The code will work on firefox but not on webkit (chrome and cordova apps for example).

The reason is because scrollspy use a jQuery is.(':visible') type of check, see https://github.com/twbs/bootstrap/commit/5a38a5775f8a3c58c09df0a0f3afc058c820c238

The workaround is to set display block on your anchors, like so:

<a id="anchor-id" style="display:block;"></a>
Assignee
Assign to
Time tracking