Topic: Dropdown Menu not closing in navbar when using animated flipInY
Jakub Strebeyko staff answered 7 years ago
Everton Gabriel pro answered 6 years ago
fmaeseele pro answered 6 years ago
Hi,
Don't know if it was fixed. Looking at the code of the animation, I managed to workaround the bug.
Inside the navbar code,
<li class="nav-item dropdown align-middle">
<a class="nav-link dropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="~/images/nophoto.png" alt="" class="profile-pic">
</a>
<div class="dropdown-menu dropdown-menu-right" data-dropdown-in="flipInY" data-dropdown-out="flipOutY">
<ul class="dropdown-user w-100">
The menu of the user.
</ul>
</li>
The deal is to use the data-dropdown-in and data-dropdown-out attributes to specify the desired animation.
Regards.
Jakub Strebeyko staff answered 6 years ago
Hi there guys,
@fmaeseele - thanks for posting the walkaround! @Everton Gabriel does it solve your usecase?
Best,
Kuba
MDBootstrap staff pro premium priority answered 5 years ago
Hi,
I created this example of an implementation for this weird button case. Hope it is enough for these animations. Thanks for the good advice about this implementation! https://mdbootstrap.com/snippets/jquery/pjoter-2-0/812021
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No