svg-inline-react icon indicating copy to clipboard operation
svg-inline-react copied to clipboard

Error when SVG has a style prop

Open Anna-log7 opened this issue 3 years ago • 1 comments

When an SVG has a style prop and raw is set, the library errors due to React trying to map style to the <svg>. Adobe Illustrator produces SVG's with style tags set and it would be nice to handle these.

Here's an example: https://codesandbox.io/s/floral-sound-nn1vl?file=/src/App.js

@sairion I would be willing to open a PR for this issue if that's alright

Anna-log7 avatar Jul 13 '21 23:07 Anna-log7

@sairion Was curious if you've gotten a chance to take a stab at this. I noticed that this seems to affect webpack 5 specifically. As after upgrading from 4 I noticed this bug with my app.

joshferrell avatar Feb 07 '22 23:02 joshferrell