Skip to content

Commit 4745e5a

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

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
@@ -564,7 +564,9 @@ <h3 class="modal-title">Push Project Changes to GitHub</h3>
564564
<script>
565565
// submenus open on click + hover
566566
$( ".dropdown-submenu" ).click(function(event) {
567-
event.stopPropagation();
567+
if (!$(event.target).hasClass('dropdown-item')) {
568+
event.stopPropagation();
569+
}
568570
$(this).parent().siblings().removeClass('open');
569571
$(this).parent().toggleClass('open');
570572
});

0 commit comments

Comments
 (0)