Skip to content

Commit

Permalink
fix: removeEventListener Mouseover
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Di Paolo committed May 28, 2024
1 parent 54f3875 commit e043652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BlazorContextMenu/wwwroot/blazorContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,17 @@ var blazorContextMenu = function (blazorContextMenu) {
blazorContextMenu.Hide(subMenu.id);
}

i = currentMenuList.childNodes.length;
i = currentMenuList.children.length;
while (i--) {
var child = currentMenuList.children[i];
if (child == currentItemElement) continue;
child.removeEventListener("mouseover", closeSubMenus);
}
};

var i = currentMenuList.childNodes.length;
var i = currentMenuList.children.length;
while (i--) {
var child = currentMenuList.childNodes[i];
var child = currentMenuList.children[i];
if (child == currentItemElement) continue;

child.addEventListener("mouseover", closeSubMenus);
Expand Down

0 comments on commit e043652

Please sign in to comment.