Topic: Dropdown menu disappears on click
lisablu2020
asked 2 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.
Closed
- User: Free
- Premium support: No
- Technology: Angular
- MDB Version: 7.4.1
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No