-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Colapse and Scrollspy incompatible #5122
Comments
This is because we're not refreshing the scrollspy in our demos. Let's see if @fat wants to make that change to the docs, but I don't see it as a huge issue. |
So, the appropriate way to handle this is to combine the Collapse show/hide events with the Scrollspy refresh method, like: $('#myCollapsible').on('hidden', function () { It's really not optional if you're using both features. Updating the documentation would be a good step (and I would be happy to pitch in with that if that's the direction decided) but I think it might make sense to include code in one or both JS modules to check if the other one is running and register this function to the event if it hasn't already been registered. Now, maybe that's overkill if the collapse is happening outside of the scroll area, but in my opinion scrollspy is going to be used more for navigation (as in Bootstrap docs) than elsewhere so the times when they're both present but don't interact are going to be edge cases. |
Hey @gruber76, Thanks for opening this issue! Unfortunately, it looks like it fails to pass the criteria neccessary for submitting to bootstrap. The following things are currently failing:
For a full list of issue filing guidelines, please refer to the bootstrap issue filing guidelines. thanks! |
In case you're not a bot: since the JS may or may not be important enough to fix but the issue with the documentation is related but can be addressed without modifying the core app, should I:
|
Hey @koenpunt, Thank you for your note. Unfortunately it appears to fail the Turing Test for interactions with humans. Please feel free to re-read the request for assistance posted September 26th and respond appropriately. |
Ow crap, my bad, did run |
not going to make this change – it's not a big deal |
You can recreate this bug on the Bootstrap Javascript page (http://twitter.github.com/bootstrap/javascript.html) in any browser I've tried, including at least Chrome (21.0.1180.89) and IE10.
The text was updated successfully, but these errors were encountered: