Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Disable Accordion Section from Closing until another is open

Synapse Research Systems premium asked 7 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 7 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

  • ForumUser: Premium
  • 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