Last Updated: February 25, 2016
· coma

"Uncaught TypeError: Cannot read property 'nodeName' of undefined" clicking on SVG elements

If you find this in your Chrome console:

Uncaught TypeError: Cannot read property 'nodeName' of undefined

then you are suffering from:

my quick fix:

svg {
  pointer-events: none;

Obviously it will prevent any interaction with the SVG elements, but in my case, since I'm using them just as icons, it doesn't matter.

2 Responses
Add your response

Did you happen to find a better fix for this? In my case I need to use the svgs as clickable elements

over 1 year ago ·

@uriklar, I I haven't dug deeper since this solution suits my needs, but following the issue you'll find , so maybe you should fork the repo and make a PR to fix it.


over 1 year ago ·