Topic: MDBootstrap Support Forum

lizetteeboucher free asked 6 days ago


Expected behavior The accordion component should expand/collapse correctly on click and only one panel should be open at a time when data-mdb-parent="#accordionExample" is used.

Actual behavior Accordion panels are not collapsing properly. Multiple panels remain open even when data-mdb-parent is defined. Also, clicking on a collapsed panel does not always trigger the expand animation unless the page is refreshed.

Resources (screenshots, code snippets etc.) Here is a simplified snippet

Accordion Item #1 Content for panel 1.

Kamila Pieńkowska staff answered 6 days ago


Please provide a snippet that demonstrates the behaviour. Examples in the documentation work as expected: https://mdbootstrap.com/docs/standard/components/accordion/#section-basic-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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 7.2.0
  • Device: laptop
  • Browser: google chrome
  • OS: Windows 10 Pro
  • Provided sample code: No
  • Provided link: Yes