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/
- Scroll to or click to the "Classes" section
- Click toggle any of the "COLLAPSEABLE [class] Archetypes"
- 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