-
-
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
Collapsible parent
option is dependent on dom structure
#10966
Comments
+1 for leaving it like it was -- |
Great find! I just upgraded to a new version after discovering that the version I've been using (which I downloaded as soon as bootstrap 3 was released) doesn't properly manage grids (xs would always be stacked even on mobile etc). So after downloading this new version, the grids work fine but the top nav was broken and so was the accordion behavior. I've been using "accordion-group" class to ensure other collapsible closes when the new one opens. So now just need to replace it with "panel" and it works like it used to. So those that used "accordion-group" in the past could just replace it with "panel". |
Well basically i was trying to find out why we need a container such as |
You needed the accordion-group if you needed no more than one collapse from the group to be expanded at any given time. |
@meshkoff yes, that is what an accordion is, but you shouldn't need 2 containers for it (i.e. both |
@ThinTim Yup, that's exactly what i meant. Thank you :) |
Agree |
I also found this issue confusing when trying to imitate the accordion behavior from the Bootstrap documentation's own .bs-sidenav.
|
+1 |
+1 |
This appears to be fixed by #11191 |
this is the way it is because of nesting accordions shudder… but yes. you do it. Also, you can't just use So for now, yes – > Collapsible |
also, updated the |
It looks like Bootstrap 4 will keep the requirement of exactly two levels ( Line 124 in ab39def
|
+1 |
Hi, i found this pull request: #7600
In the latest version i see that the
parent
option is now dependent on the.panel
class, i.e.:var actives = this.$parent && this.$parent.find('> .panel > .in')
Why don't you just leave it like it was (
.collapse.in
) or better yet, just:var actives = this.$parent && this.$parent.find('.in')
Or, i get it if the parent must have a class, to avoid conflicts with other libraries, but can you please explain what's up with depending on dom structure? (the double > in the selector really don't look good to me)
Oh and, the docs are way behind on this one. There's an
.accordion-group
class mentioned, but not saying how it should be used, and the example doesn't have one at all (yet it works, probably on an old bootstrap version).So basically, please decide on a structure and update the docs & examples accordingly. If you want i could help you with some of the workload, as you see fit.
Thank you.
The text was updated successfully, but these errors were encountered: