Dropdown no working (v4.11.0)


Topic: Dropdown no working (v4.11.0)

Elgon2003 asked 5 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.

Resources

<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>
            </a>
            <div class="dropdown-menu dropdown-menu-right dropdown-default"
              aria-labelledby="navbarDropdownMenuLink-333">
              <a class="dropdown-item" href="#">Profile</a>
              <a class="dropdown-item" href="#">Orders</a>
              <a class="dropdown-item" href="#">Log-out</a>
            </div>
          </li>

Grzegorz Bujański staff commented 5 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 answered 5 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 5 years ago

Our examples always use the latest version of MDB


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: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: PC
  • Browser: Chrome
  • OS: Linux
  • Provided sample code: No
  • Provided link: No