Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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?


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • 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