Line 124:

/* When using hover expansion:
* - Add mouse-hovering events.
*/
else if (settings.nav == 'hover') {
link.mouseenter(function(e) {
if (li.hasClass('active-trail') && li.hasClass('expanded')) {
li.removeClass('expanded').addClass('start-collapsed');
li.removeClass('active-trail');
}
Drupal.dhtmlMenu.switchMenu(li, link, ul, true);
});

Replace li.mouseleave(function(e)
with
ul.mouseleave(function(e)

Comments

lord_bosco’s picture

lord_bosco’s picture

StatusFileSize
new1.27 KB

Updated patch with fix to active trail mark up

vuil’s picture

Issue summary: View changes
Status: Needs review » Needs work

The patch can not be applied to the latest 7.x-1.x-dev branch. Please check it and if need update the patch. Thank you!

vuil’s picture

Assigned: lord_bosco » Unassigned

I unassigned @lord_bosco of the issue.