-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Menu not closing on hover out #36
Comments
Yea, I'm coding a fix for this before the next release (next release will include #4's changes in it also). |
Hi, I just solved the issue. I just updated this block (Temporary Fix): $li.on('mouseover', function ($event) {
$scope.$apply(function () {
if (nestedMenu) {
openNestedMenu($event);
} else {
$(event.currentTarget).removeClass('context');
removeContextMenus(level + 1);
}
});
}); |
@dashawk, I adapted your snippet into a PR :-) |
@madmas I had a slightly different solution (very similar actually), but It involves waiting 0.5 seconds of hover off to close the menu similar to how it works on desktop, but I need to test the idea to make sure it works on touch okay. This allows the mouse to quickly move off and back on without instantly closing the menu. |
any luck with this? |
Thanks guys for the inputs. I will close this issue now but if you have any other additions, feel free to reopen. |
I have a nested menu example here.
The issue is that, when you hover to a nested menu item, it will display the sub menu items, but if you hover to another menu item which is not a nested menu, then recently opened sub menu of the previous menu is still open.
Is there a way to close the sub menus if we hover away to the parent menu item?
The text was updated successfully, but these errors were encountered: