Skip to content

4.3.1 - Use of collapse breaks scrollSpy #28807

@yarhouse

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions