Answers for "bootstrap dropdown with close"

1

bootstrap dropdown going off page

<!--add  dropdown-menu-right class to the dropdown-menu -->
<div class="dropdown-menu dropdown-menu-right">
Posted by: Guest on August-04-2020
-1

bootstrap prevent dropdown from closing on click

// If an element inside a dropdown menu has the "keep-open" class,
// disable closing the dropdown menu.
$(document).on('click.bs.dropdown.data-api', '.keep-open', function (e) {
  e.stopPropagation();
});
Posted by: Guest on October-01-2020

Code answers related to "bootstrap dropdown with close"

Browse Popular Code Answers by Language