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

Sometimes svg is not injected till user click somewhere in the dom or do resize,

DonikaV opened this issue · comments

I checked Elements tab and i see empty wrapper until I click somewhere in the dom or scroll the page.

Can you please provide a repro of this issue? You can fork the Basic Usage sandbox for that if you like.

@DonikaV can you please try using v14.0.0 which was published just now? It fixes a couple of things under the hood, which might help with your issue.

Sounds similar to an issue I had with version 13.0.5. For me, updating to v14.0.0 resolved it.

Closing due to inactivity.

Updating to v14 also resolved this issue for me. Keep in mind there is a breaking change, an additional wrapper is being added to the svg in this version.