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
It seems as if the only change to an elements attributes is a style: directive change within an {#each} block, that the style change doesn't get updated/propagated.
Interestingly, I've found if you also change the content of the element being rendered or another attribute of the element, the style: change is propogated correctly.
Without being too familiar of the internals of the reactivity, I would assume the style: directive isn't reactive within a loop?
Will have a look at the source/changes implemented in #5923 and see if I can implement a fix, although I'll be pretty much starting from scratch with regards to grok-ing the reactivity source. Any pointers would be ace!
Describe the bug
It seems as if the only change to an elements attributes is a
style:
directive change within an{#each}
block, that the style change doesn't get updated/propagated.Interestingly, I've found if you also change the content of the element being rendered or another attribute of the element, the
style:
change is propogated correctly.Without being too familiar of the internals of the reactivity, I would assume the
style:
directive isn't reactive within a loop?Will have a look at the source/changes implemented in #5923 and see if I can implement a fix, although I'll be pretty much starting from scratch with regards to grok-ing the reactivity source. Any pointers would be ace!
Reproduction
https://svelte.dev/repl/6221482eb173402988e4493fcf2bbba1?version=3.46.1
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: