Dropdown button with accordion not closing
I followed the below post which helped in creating the dropdown accordion.
Updated fiddle with the issue.
check out this link if it will help. If not then please explain the problem in detail with this code relevant to your code. Basically i have removed the data-toggle=collapse as it will add the "in" class to your dropdown by which the dropdown is opened untill the class "in" is removed.