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
I have used app.Raw() for svg in the past and now i'm trying out rendering them as custom elements.
It occurred to me that the css class is not applied.
This is the render function i was using:
I have used
app.Raw()
for svg in the past and now i'm trying out rendering them as custom elements.It occurred to me that the css class is not applied.
This is the render function i was using:
It seems that there is an issue with how the property is set, see https://stackoverflow.com/questions/37943006/unable-to-change-class-name-of-svg-element
and here: https://github.com/maxence-charriere/go-app/blob/master/pkg/app/attribute.go#L105
Any way we could use
setAttribute
as done in the default case? https://github.com/maxence-charriere/go-app/blob/master/pkg/app/attribute.go#L134I've just tested out
setAttribute
instead of theclassName
property and it works (on my machine)The text was updated successfully, but these errors were encountered: