-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't update <use /> tag "href" attribute when renumerateIRIElements
is true
#2671
Comments
Thanks for the report. Can you please create a working repro I can look at by forking the basic usage example? |
@bodasooqa I just ran into the same issue today as well. Took me a while to find out why some part of my svg is not showing. Good to know I am not the only one who had ran into this issue. Thanks for bringing this up. @tanem Thanks for maintaining ReactSVG. I think I can provide some information that would help reproduce this issue. Here is the original svg file I am using:After transpiled by ReactSVG, some part of it can not be displayed:This is how I use ReactSVG in my code:import { ReactSVG } from "react-svg"; // Using "react-svg": "^16.1.31",
export default function App() {
return <ReactSVG src="/before.svg" />; // I didn't set any props. Just use it in the default way
} The reason I found:the The
|
is there any solutions for this, i have the some problem with this too, i make temporal solution, set renumerateIRIElements to true and working for me |
I have the code in my svg:
And as a result ids and clip-path are updated:
refresh-1
,refresh-clip-2
,url(#refresh-clip-2)
, but href attribute of<use />
is still#refresh
The text was updated successfully, but these errors were encountered: