fix bugginess in dropdown hover

This commit is contained in:
Mark Eaton
2022-06-29 11:35:51 -04:00
parent ecc16a19cd
commit b3272aa20c
+5 -2
View File
@@ -388,8 +388,11 @@ $(document).ready(function(){
});
} else {
// else trigger dropdown on hover
$('.dropdown.main-nav-dropdown').hover(function() {
$('.dropdown-toggle', this).trigger('click');
$('.dropdown.main-nav-dropdown').mouseenter(function() {
$(this).addClass('open');
});
$('.dropdown.main-nav-dropdown').mouseleave(function() {
$(this).removeClass('open');
});
};
});