-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.3.1 - Use of collapse breaks scrollSpy #28807
Comments
Hi @yarhouse, Thanks for reporting that behavior ! When the collapse is hidden or shown it change the window's height that's why our Scrollspy is totally lost. |
I am having a similar issue that I believe could be related to this related issue : Issue description Steps to reproduce the issue
What's the expected result? What's the actual result? Operating system: macOS Catalina |
Is this something we want to support @twbs/js-review? Feel like if someone is collapsing content, and scrollspy is in use, they would need to trigger an update to scrollspy to refresh the scroll positions. Is this something we need to support, or something others are responsible for entirely? |
Ideally, we should handle this case too. It's an edge case but something that we should handle. |
Tried the above fiddle, using v5.2.0 scripts & replacing scrollspy calls with So I am closing the issue |
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/
What's the expected result?
What's the actual result?
Additional details / screenshot
var $spy = $('#view').scrollspy('refresh')
to the collapse and nav button clicks does nothing to reset the spyThe text was updated successfully, but these errors were encountered: