I recently implemented a custom SVG Icon control for my company\'s new html application. Not long After it was implemented our quality department started reporting that IE 1
I was running into this with an <svg>
that was dynamically added or removed from the DOM with AngularJS and ng-if
. The accepted solution did not work for me. The solution that did work was to use ng-show
instead which hides and shows the SVG instead of adding and removing it from the DOM.
Since there hasn't been much traffic with this post I guess I will post a solution: I added this CSS rule:
svg use {
pointer-events: none;
}
This is not ideal but it keeps IE 11 from locking up and that is all I am required to support with this project. However I would like for this post to help others in the future who might encounter this bug and do need to support older versions of IE. If anyone is willing to take the time to come up with a more robust solution I will accept that as the answer to this post.
Also should I file a bug report to microsoft regarding this issue?