PolymerElements / iron-iconset-svg

Represents a source of icons expressed as a collection of inline SVGs
https://www.webcomponents.org/element/PolymerElements/iron-iconset-svg
37 stars 34 forks source link

Icon cannot be removed from a Polymer element with removeIcon #45

Open alberthier opened 8 years ago

alberthier commented 8 years ago

When clearing the icon from an iron-icon element, the local dom isn't cleared properly on browsers not supporting shadow DOM natively (Safari, Edge, IE).

This is due to the fact that removeIcon doesn't try to access to the element's local DOM root whereas applyIcon does.

PR #44 fixes the issue