Topic: Prevent collapse of accordion menu in sidenav on page load

brouzoulis pro asked 6 years ago

Hi, Any ideas on how I can prevent the accordion menu, when using the side-nav component, from automatically collapsing all the groups on page load trough a transition. To see this collapse-animation becomes a bit distracting after a while (in my mind). Prefereably I would like all the groups to be either expanded, collapsed or one being expanded and the rest collapsed. But no initial animation. Kind regards // Jim

brouzoulis pro answered 6 years ago

Thank you, works great!

Michal Szymanski staff answered 6 years ago

Workaround :
.collapsible-body {
    display: none;

Michal Szymanski staff answered 6 years ago

Hi, this is a bug and we have to fix it. Right now I do not have a ready solution for it. I've added it to my ToDo list and I'll come back to you when I fix it. Best, Michal

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.


Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No