Double svg tag when using custom collection
mfazail opened this issue ยท 3 comments
mfazail commented
Project deps
"nuxt": "^3.11.2",
"nuxt-icon": "^1.0.0-beta.4"
Problem
When i use custom collection the generated svg code contains double tags something like ๐
<svg ...>
<svg ...>
<path ... />
</svg>
</svg>
Stackblitz
Screenshot
Svg Mode
Css mode
alvarosabu commented
joseanzacarias commented
If this works for someone I was having the same error about the icon getting cropped so I removed width and height from my own svg and now its fine. @alvarosabu this could help you.
mfazail commented
@joseanzacarias hi,
I have tried what you said but for some reason it doesnโt work on all svg.