-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix: revert removal of defs, add instanceId suffix to ensure uniquene… #3303
Conversation
🤖 Pull request artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useInstanceId
just counts the instances of the object in the editor. So there is a large chance that this can conflict when used across the site - e.g. the first icon used in a page is always instance "#1"
Instead of doing useInstanceId
, generate a random number to append instead directly inside cleanSvgString
The SVG pointed out seems to have an image embedded inside it. I believe we will not support this one (and WP might be stripping this out as well) |
…ss of IDs
fixes #3265