Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassList not working in SVG use tag in IE11 #79

Open
SLYJason opened this issue Apr 6, 2018 · 4 comments
Open

ClassList not working in SVG use tag in IE11 #79

SLYJason opened this issue Apr 6, 2018 · 4 comments

Comments

@SLYJason
Copy link

SLYJason commented Apr 6, 2018

I'm build a angular project that I can't get classList from svg use tag in IE11, for example:

<svg class="a b c>
   <use class="d e f" [attr.xlink:href]="iconPath"/>
</svg>

I call classList of use tag in IE11, it just returned undefined. But if call classList of svg tag, it's working fine.

Note: iconPath is a component variable.

@englishextra
Copy link

point to the version of classList.js U R using

@SLYJason
Copy link
Author

SLYJason commented Apr 8, 2018

^1.1.20150312

@curtisbelt
Copy link

I'm having the same issue. 1.2.20171210

@curtisbelt
Copy link

@SLYJason I just solved this, at least for my case.

From facebook/react#4963

add pointer-events: none to and elements.

svg,
use {
  pointer-events: none;
}

Worth mentioning this resolved my problem without needing classList polyfill after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants