Closed alberthier closed 7 years ago
Any status updates about this PR? It also fixes https://github.com/PolymerElements/iron-icon/issues/67. BTW in my case removeIcon()
does not work even though ShadowDOM is used.
/cc @azakus (maintainer) @kevinpschaaf (tl) @tjsavage (pm)
even though this PR is titled "when using shady DOM", @freshp86 locally patched Chrome's fork of Polymer and this fixed some issues for us.
related downstream issue: https://github.com/PolymerElements/iron-icon/issues/67 chrome-side bug: https://crbug.com/628071
@azakus: Any status update? When can we expect this PR to be merged?
@tjsavage
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 whereasapplyIcon
does.This PR makes both method behave the same way