You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice to see the support SVG.I just pulled the maaster branch and tried a piece of code from a tailwindcss component. The below error will be found in Chrome Devtool.
Uncaught (in promise) TypeError: Cannot set property className of #<SVGElement> which has only a getter
at imports.wbg.__wbg_setclassName_579da04a76182ffb
After commenting “class” attribute out from svg, everything will be fine as before.
For more details, please see below screenshot and code snippt.
Ah it's because there is an internal optimization to use className instead of setting the attribute for html elements. This doesn't work for SVG elements which causes this error.
Describe the bug
Nice to see the support SVG.I just pulled the maaster branch and tried a piece of code from a tailwindcss component. The below error will be found in Chrome Devtool.
After commenting “class” attribute out from svg, everything will be fine as before.
For more details, please see below screenshot and code snippt.
To Reproduce
Use below compoent to reproduce.
Expected behavior
No runtime error
Screenshots
Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: