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've noticed that when elements have the bind:this directive as well as props spread onto the element, class: directives do not result in the appropriate class being applied. This can be worked around by using a class attribute with an expression (e.g. class={primary ? 'primary' : ''} works, but class:primary does not).
Here's a demonstration of the issue. You'll note that the anchor will be green as expected if you do any of the following three things:
delete line 3 (bind:this={anchor}),
delete line 4 ({...{ other: 'props' }}), or
change line 2 to class={primary ? 'primary' : ''}.
Thanks for all the great work you've done on this library!