-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Icon is not rendered with IE11 #6
Comments
Add the polyfill provided by Angular CLI in polyfill.ts
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ |
Sorry, that didn't work neither for my project nor for the library demos - that's why I raised the ticket. I believe you checked this, so the problem is on my side. Thanks |
Hello @xtreye, did you manage to solve this issue? I have the same problem, SVG icons are not rendered on IE11 with |
Hey @RonnieRocket147 nope, just avoiding SVG functionality so far. Would be great to see if this works for real. |
Check out this solution I found yesterday: #16 (comment) |
I'm submitting a...
Current behavior
With IE11, it fails to render an icon. The following gets to JS console:
TypeError: Argument not optional
Investigation shows that this happens because
this.element.classList
is not supported for SVGs in IE11.Expected behavior
Should render the icon, without an error message
Minimal reproduction of the problem with instructions
Standard
<svg-icon key="settings"></svg-icon>
is enough to reporduce with IE11What is the motivation / use case for changing the behavior?
IE11 is still a standard browser for many corporate users
Environment
The text was updated successfully, but these errors were encountered: