[Accordion] Nested Accordion section does not stay open.
Nested section Level 1a should stay open.
The nested section is automatically closed.
https://jsfiddle.net/ibelar/29aywdb3/

2.6.4
You have to define the parent accordion only instead of all nested.
Simply select .ui.accordion instead of .accordion
$(".ui.accordion").accordion();
Thanks.
Would be nice to have this documented somewhere. Unless I have missed it, I did not see how to properly set nested Accordion in documentation.
@ibelar I just checked and it doesn't seem to be in the docs, I will add it for the next release.
Maybe it's not explicit, but there is something in examples
@etshy Yeah I will be adding a snippet of JavaScript to show how that example is initialized.
I experience a variance of this behavior in fomantic v2.8.4 with an accordion nested in a card nested in an accordion.
You can verify it in this fiddle by trying to open the accordion called _look, there's more_ at the bottom of the card in top level accordion _Level 1B_.
Do you reopen bugs or should I open a new one?
Edit: You want to know something funny?
In above scenario, removing the css class _ui_ from the nested accordion actually _fixes_ it.
Compare with this fiddle.
In above scenario, removing the css class ui from the nested accordion actually fixes it.
Yes, that's the way it's meant to be. The very parent accordion takes care of all nested ones, so the selector in your fiddle would initiate the accordion in the card twice.
So, whenever working with accordions, make sure to select only the very parent one to be instantiated via .accordion
@lubber-de I see, thanks! I overlooked this example that should have made that clear. I'll remind myself to RTFM
Most helpful comment
You have to define the parent accordion only instead of all nested.
Simply select
.ui.accordioninstead of.accordionhttps://jsfiddle.net/tmdbh6k5/