-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unique id #21
Comments
Interesting, I have to investigate this. If you have some examples, I will glad to take a look at them. As a workaround, you can use |
@shrpne it is quite simple. The problem happens when we use vue-inline-svg to inject and expand the same svg multiple times in the same html multiple times. Then the svg's internal element ids will belong to the whole page document, and if the svg is expanded several times, there will be collisions. Non unique ids are not allowed as per standards. Edit: |
Here is example of transforming function https://github.com/gilbarbara/react-inlinesvg/blob/main/src/index.tsx#L296 |
I'm missing an option to prefix id inside the svg with a random string. Conflicting id with multiple SVGs can be a problem, similar tools for react does this.
The text was updated successfully, but these errors were encountered: