I have used bootstrap accordion with 3 static panels and a dynamic panel that is added by an Angular Selector. Due to the Selector, an extra div is wrapping the fourth panel, hence the panel is no longer directly under panel-group. So the collapsing works for the 3 static panels but not for the dynamically added panel in accordion : To elaborate, after expanding the fourth panel, when I try clicking on any of the first three panels, the fourth panel doesn't collapse.
I have replicated my problem in this tryit editor link.
I know one dirty way to solve the problem would be to use jquery and manually make the accordions collapse. Is there any better way?
Update: Here is an updated link , where the dynamic generated content has two panels wrapped by the extra div. As before, the accordion behavior is not working properly for panel 4 and panel 5.