tanem / react-svg

:art: A React component that injects SVG into the DOM.

Home Page:https://npm.im/react-svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Components don't work properly in iframe

tianxiumei opened this issue · comments

“this.reactWrapper instanceof Node” needs to changed to "this.reactWrapper instanceof this.reactWrapper.ownerDocument.defaultView.Node" for it to work

Hi @tianxiumei, thanks for the PR. Keen to see a running example that demonstrates the issue, you can fork the basic usage sandbox for that if you like 🙏

Have added a commit onto the PR here.

Have merged the PR associated with this issue, thanks for the contribution 🙂