-
Notifications
You must be signed in to change notification settings - Fork 60
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
Collapse toggling bug #45
Comments
This is true! I am having this problem as well. I am surprised that this has slipped by the wayside. |
+1 |
When this script calls twbs/bootstrap#16360 It looks like an object that specifies the parent has to be passed through with this call.. I am looking into this now. |
I have the same problem |
I solve this bug by this code:
|
Same issue here. +1 Klainer's workaround is ok. |
I try fix it with @Klainer and I clicked other tab the tab, but they collapse all the tab and don't show clicked tab. I'll try to debug it, but it's making some kind of endless loop. |
Same issue here, and trying Klainer's fix gave me the infinite loop mentioned by equiman |
Is there any updated fix for this issue..! |
Hi.
This buggy behaviour applies to this demo page also, so to reproduce...
Clicking between the last two accordion links (Key Features and Source) will show correct collapse/expand toggle behaviour, but if you then click back to the first (How To), you will notice that the last one (Source) is still open, it has not collapsed.
If you play around with it you will notice this happens a lot (eg click first, then second, then back to first: second is still open).
NOTE: if you remove the .active classes from the markup, the problem is gone. You can then use:
$('#myTab a:first').tab('show'); // Select first tab
to show the first panel BUT this only works with the normal, bootstrap/desktop panel, it doesn't also trigger the first responsive accordion (should do).
PS, it would be good to have auto collapse/expand as an option. I would prefer to not use it as it causes unexpected page jumps during collapse when you use more realistic amounts of text in the panels.
Thanks
The text was updated successfully, but these errors were encountered: