Prevent collapse of accordion menu in sidenav on page load


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

brouzoulis pro asked 8 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

Michal Szymanski staff pro premium priority answered 8 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

Michal Szymanski staff pro premium priority answered 8 years ago

Workaround :
.collapsible-body {
    display: none;
}

brouzoulis pro answered 8 years ago

Thank you, works great!
Please insert min. 20 characters.

FREE CONSULTATION

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

Status

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
Tags