gilbarbara/react-inlinesvg

It's have text bug also!

pxim opened this issue · 4 comments

pxim commented

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?

pxim commented

@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",

pxim commented

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