Topic: Dropdown no working (v4.11.0)

Elgon2003 free asked 4 years ago

So I'm using MDB 4.11.0 and I copied from the documentation a navbar but when I tried to use it it didn't show the dropdown on click.


<li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink-333" data-toggle="dropdown"
              aria-haspopup="true" aria-expanded="false">
              <i class="fas fa-user"></i>
            <div class="dropdown-menu dropdown-menu-right dropdown-default"
              <a class="dropdown-item" href="#">Profile</a>
              <a class="dropdown-item" href="#">Orders</a>
              <a class="dropdown-item" href="#">Log-out</a>

Grzegorz Bujański staff commented 4 years ago

Hi. You probably don't import the required js files. How do you implement MDB? Via npm, by downloading zip and creating your own html file or in another way?

Samuel Rosa free answered 4 years ago

Hi, I think the examples use an old version (4.10 or older) that use open to show the menu and in 4.11 uses show

Grzegorz Bujański staff commented 4 years ago

Our examples always use the latest version of MDB

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: PC
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: No