Topic: MDB 5 Sidenav expands accordion when clicking on any dropdown from the Navbar

mgray priority asked 3 years ago


Expected behavior I took code from the example of the MDB Navigation Sidenav. I have initiated it and would like to interact with the Sidenav and the Navbar the same way as in the example visible when I click the View Full Screen Demo in the documentation https://mdbootstrap.com/docs/standard/navigation/sidenav/#subsection-mdb-navigation

Actual behavior When I copied the code from the documentation and run it, clicking on any dropdown in the Navbar unfolds accordion items in the Sidenav. What I found out is that the version of MDB presented in the documentation and the version in the example (View Full Screen Demo) is different.


Grzegorz Bujański staff commented 3 years ago

I have checked it and unfortunately cannot reproduce this error. Check out this snippet: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/2841595#js-tab-view Maybe there is some extra code in your project that causes this error? Are you able to modify this snippet to get this error?


mgray priority commented 3 years ago

Problem found. I have imported MDB two times. You can close this issue.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 3.0.0
  • Device: Desktop
  • Browser: Google Chrome Version 87.0.4280
  • OS: Linux
  • Provided sample code: No
  • Provided link: Yes