Topic: Dropdown no working (v4.11.0)
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>
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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: PC
- Browser: Chrome
- OS: Linux
- Provided sample code: No
- Provided link: No
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?