Hide menu when mouse leaves popup menu
Is there a way to close the menu when the mouse isn't focused on the popup?
I came here looking for the same thing. This worked for me.
.menuAim({
exitMenu: function(){return true;}
});
@miniragnarok Thanks! Works for me too!
Where does this need adding? as i also want to achieve the same effect
Don't matter i've done it :) for anyone else who doesn't quite know what to do i added it here and seemed to work.
$menu.menuAim({
activate: activateSubmenu,
deactivate: deactivateSubmenu,
exitMenu: function(){return true;}
});
This doesn't exactly work, because returning true in exitMenu() makes the menu behave as it would without the menu aim plugin, ala http://static.tumblr.com/9hgswys/iU1mj8c6y/bootstrap-bug.gif
I've coded update to plugin code in order for menu to auto close on menu leave - here's the pull request