Skip to content
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

Chrome - Submenu flashing when cursor over menu at load time #6

Open
cmayo1 opened this issue Oct 22, 2015 · 1 comment
Open

Chrome - Submenu flashing when cursor over menu at load time #6

cmayo1 opened this issue Oct 22, 2015 · 1 comment

Comments

@cmayo1
Copy link

cmayo1 commented Oct 22, 2015

In Windows 7 with the full-length menu displayed (i.e. unadjusted by breakpoints) in Chrome (Version 46.0.2490.71 m) or Firefox 41.0.1, hover the cursor above a menu item (preferably the first) containing submenus and reload the page (F5).

After the page loads, remove the cursor from the menu. The menu's submenu will be displayed and will be stuck "on." Hover over the stuck submenu and it will begin to flash. Submenu items cannot be activated and the submenu will not behave properly until the page is reloaded.

Since the menu resizes during load, this works best if the menu item being tested is the first item of the menu, otherwise the behavior can shift to the next menu to the right of the hovered menu if that menu has submenus.

Issue does not occur in IE 11.

@timrelton
Copy link

timrelton commented Mar 14, 2017

The problem has been bugging me for a while and I recently noticed that when a menu item is clicked that is in the top level and before the page finished loading, the mouse is moved over a menu with sub menus, the hovered block toggles the wrong way and remain visible even if another sub menu is being hoevered. I think this may be related to the above problem.

I have tested replacing lines 51-54 in dropdowns.js with the following

$(".nav li").unbind('mouseenter').bind('mouseenter', function() {
// must be attached to li so that mouseleave is not triggered when hover over submenu
$(this).addClass('hover');
});
$(".nav li").unbind('mouseleave').bind('mouseleave', function() {
// must be attached to li so that mouseleave is not triggered when hover over submenu
$(this).removeClass('hover');
});

Which currently seems to solve the issue. Hope that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants