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
  • #28807
Closed
Open
Issue created May 22, 2019 by Administrator@rootContributor

4.3.1 - Use of collapse breaks scrollSpy

Created by: yarhouse

Issue description

When using a simultaneous implementation of multiple collapse functions and scrollSpy for a continous scroll through a nav bar, the use of any collapse will unset/break the scrollSpy, and futhermore cannot seem to be reset or 'refreshed'

Steps to reproduce the issue

http://jsfiddle.net/lopac1029/9ork8Lts/embedded/

  1. Scroll to or click to the "Classes" section
  2. Click toggle any of the "COLLAPSEABLE [class] Archetypes"
  3. Scroll in any direction

What's the expected result?

  • The scrollSpy should not change from the current active sidebar nav item until it reaches the next "chapter" element as defined in the scrollSpy init configuration

What's the actual result?

  • the scrollSpy becomes completely disconnected from its view location and does not reset

Additional details / screenshot

  • binding a var $spy = $('#view').scrollspy('refresh') to the collapse and nav button clicks does nothing to reset the spy
  • Operating system: macOS
  • Browser: Chrome, Firefox, Safari, and likely others
Assignee
Assign to
Time tracking