jQuery-menu-aim icon indicating copy to clipboard operation
jQuery-menu-aim copied to clipboard

Hide menu when mouse leaves popup menu

Open Lippiun opened this issue 11 years ago • 6 comments

Is there a way to close the menu when the mouse isn't focused on the popup?

Lippiun avatar Mar 26 '14 11:03 Lippiun

I came here looking for the same thing. This worked for me.

.menuAim({
    exitMenu: function(){return true;}
});

miniragnarok avatar Mar 27 '14 17:03 miniragnarok

@miniragnarok Thanks! Works for me too!

adyz avatar Mar 29 '14 14:03 adyz

Where does this need adding? as i also want to achieve the same effect

razor-rich avatar Dec 05 '14 14:12 razor-rich

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;}
    });

razor-rich avatar Dec 05 '14 14:12 razor-rich

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

CoryDuncan avatar Dec 30 '14 19:12 CoryDuncan

I've coded update to plugin code in order for menu to auto close on menu leave - here's the pull request

banesto avatar Mar 02 '15 14:03 banesto