Open munkychop opened 4 years ago
Seeing same issue (thought it is my browser glitch). In my case removing <g>
elements is not an option (they are needed)
FYI, this seemed to fix the problem I was having... https://github.com/gregberge/svgr/issues/150#issuecomment-415029296
When using this library to render three SVGs — svg1, svg2, and svg3 — within the same component, I am seeing the following results:
svg1: renders correctly svg2: renders contents of both svg1 and svg2 svg3: renders contents of both svg1 and svg3
Any idea why this may be happening?
I'm seeing a
<g mask="url(#a)">
added to the DOM within each SVG, all with a mask URL targeting ID "a". After deleting the<g>
elements manually (using dev tools) the SVGs look as expected.Expected output:
Current output:
Full HTML output is as follows: