Disable Accordion Section from Closing until another is open


Topic: Disable Accordion Section from Closing until another is open

Synapse Research Systems pro premium asked 6 months ago

Expected behavior

Disable Accordion Section from Closing until another is open

Actual behavior

When i click on the section, the section close

Resources (screenshots, code snippets etc.)

Is there any way to keep always one open until the other section open, basically we need to disable the click close option on current section open


Kamila Pieńkowska staff answered 6 months ago

It would require writing custom JavaScript that will find all colapse components and chacking if any other have class show if not disable closing collapse.

But you can consider using vertical Stepper instead. It provide similar functionality: https://mdbootstrap.com/docs/standard/components/stepper/#section-vertical-stepper-example


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.2.0
  • Device: Windows
  • Browser: Allo of them
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No