Skip to content

Commit e45490e

Browse files
committed
Submenu clicks close menu dropdown
Let clicks on leaf menu items propagate so Bootstrap closes the main dropdown.
1 parent aad7f3a commit e45490e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,9 @@ <h3 class="modal-title">Push Project Changes to GitHub</h3>
563563
<script>
564564
// submenus open on click + hover
565565
$( ".dropdown-submenu" ).click(function(event) {
566-
event.stopPropagation();
566+
if (!$(event.target).hasClass('dropdown-item')) {
567+
event.stopPropagation();
568+
}
567569
$(this).parent().siblings().removeClass('open');
568570
$(this).parent().toggleClass('open');
569571
});

0 commit comments

Comments
 (0)