You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ContextMenu Items with blazor component as child cause error:
blazorContextMenu.min.js:1
Uncaught TypeError: r.className.split is not a function
at e (blazorContextMenu.min.js:1:2608)
at Object.f.OnMenuItemMouseOver (blazorContextMenu.min.js:1:2721)
at HTMLLIElement.onmouseover (Elemente:1:19)
Expected behavior
since the code is looking at the className property, the NodeList children can be used, since it only returns children of type element
Desktop (please complete the following information):
OS: Windows 11
Browser Edge
Dotnet-Version: 6.0.3
Additional context
The code uses the property childNodes, which also return text and comment Nodes (source)
The text was updated successfully, but these errors were encountered:
i just found out, that it will also throw, if the first element is an svg, since class will be of type SVGAnimatedString which doesnt have a split method
Describe the bug
ContextMenu Items with blazor component as child cause error:
blazorContextMenu.min.js:1
Causing Line: blazorContextMenu.js
To Reproduce
Steps to reproduce the behavior:
Create a contextMenu with a blazor component as first child
this will generate follow markup for the Item
Expected behavior
since the code is looking at the className property, the NodeList children can be used, since it only returns children of type element
Desktop (please complete the following information):
Additional context
The code uses the property childNodes, which also return text and comment Nodes (source)
The text was updated successfully, but these errors were encountered: