Closed SebastianWachsmuth closed 2 years ago
Wow, thak you for this find and the PR. I will merge it and publish.
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
could maybe be fixed by using element.classList
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)