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
scrollspy problem with two navs #15882
Comments
Hi @devniel! You appear to have posted a live example (http://jsbin.com/xowuw/1/edit), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
Hi, it's fixed and the error still persists: Thanks |
I'm inclined to say this is a WontFix as it isn't the intended usage. @cvrebert What do you say? |
Duplicate of #13071 perhaps? |
Was thinking about that one too but here it's about two separate navs and not single elements in one nav. Might not make a difference though. |
I am sympathetic to that argument, although the fact that the docs example currently uses |
Fixes twbs#15882 — Use an ID as the example for Scrollspy so that it is more clear that this is for use with a single nav.
[Docs—Fixes #15882]Use an ID as the example for Scrollspy
Hi, it seems that scrollspy goes crazy with two navs targeting same elements, I have this approach because of responsive design, one navigation menu is hidden in certain dimensions.
Demo : http://jsbin.com/xowuw/1/
By now, my workaround is a simple filter in scrollspy.js' refresh method :
Thanks !
The text was updated successfully, but these errors were encountered: