gilbarbara / react-inlinesvg

An SVG loader component for ReactJS

Home Page:https://codesandbox.io/s/github/gilbarbara/react-inlinesvg/tree/main/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It's have text bug also!

pxim opened this issue · comments

I use a svg with react-inlinesvg in react. It's not show the text on the svg.
image

The svg is OK when opened in chrome alone.
image

svg (the svg is in the .zip package)
multimeter.zip

@gilbarbara

This is handled by react-from-dom. Feel free to submit a pull request in that repo.

@i-fuyun
Anyway, I checked your file and it looks the same to me.
Which version are you using?

@i-fuyun
Anyway, I checked your file and it looks the same to me.
Which version are you using?

image
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-inlinesvg": "^1.2.0",

It's not react-from-dom' bug.
Because when I convert SVG attributes to react format, SVG display is normal.
image

https://codesandbox.io/embed/distracted-galois-jlwjp?fontsize=14&hidenavigation=1&theme=dark
@gilbarbara