Skip to content

Commit e043652

Browse files
author
Adrien Di Paolo
committed
fix: removeEventListener Mouseover
1 parent 54f3875 commit e043652

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

BlazorContextMenu/wwwroot/blazorContextMenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,17 @@ var blazorContextMenu = function (blazorContextMenu) {
275275
blazorContextMenu.Hide(subMenu.id);
276276
}
277277

278-
i = currentMenuList.childNodes.length;
278+
i = currentMenuList.children.length;
279279
while (i--) {
280280
var child = currentMenuList.children[i];
281281
if (child == currentItemElement) continue;
282282
child.removeEventListener("mouseover", closeSubMenus);
283283
}
284284
};
285285

286-
var i = currentMenuList.childNodes.length;
286+
var i = currentMenuList.children.length;
287287
while (i--) {
288-
var child = currentMenuList.childNodes[i];
288+
var child = currentMenuList.children[i];
289289
if (child == currentItemElement) continue;
290290

291291
child.addEventListener("mouseover", closeSubMenus);

0 commit comments

Comments
 (0)