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
Thanks for reporting. I suspect this has to do with the fact that class/className overwrites all classes and classList applies them piecewise. Depending on how they are applied they trample each other. I am looking at ways to improve this if possible, but it is innately difficult given the way reactivity independently updates. We's almost need to change how all class applications apply with the existence of a classList property. My general advice for right now is not mixing these and we will have to see if there is a reasonable fix.
just ran into this, would be awesome if you could use classList with styled components! it's oftentimes much more convenient than to pass in and handle a custom prop in the component.
Considering the following styled div:
The component:
results in
<div class="go1681785550"></div>
, but it should also containfoo
.Adding a className prop:
results in
<div class="bar go1681785550 foo"></div>
, containing bothfoo
andbar
.The text was updated successfully, but these errors were encountered: