Topic: Dropdown menu disappears on click
lisablu2020
free
asked 5 years ago
Expected behavior Similar to bootstrap 4, if you add a element inside a dropdown-menu, clicking items within the form will not cause the dropdown-menu to disappear.
<ul class="dropdown-menu">
<form><div>Hi</div></form>
</ul>
Using bootstrap 4, clicking "Hi" will not close the dropdown.
Actual behavior Angular MDB Bootstrap does not seem to have this capability. Using the code above, clicking "Hi" will still close the dropdown.
Is there a way to prevent the dropdown from closing when clicking on certain elements within the dropdown?
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.4.1
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No