mirror of https://github.com/sveltejs/svelte
Handle whitespace inside #each with animation (#5477)
* Strip out whitespace inside each when it has an animation * remove accidentally committed file * lint * add test to validate no error * update changelog Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Co-authored-by: tanhauhau <lhtan93@gmail.com> Co-authored-by: Tan Li Hau <tanhauhau@users.noreply.github.com>pull/7146/head
parent
e4a3a875f3
commit
a4e4027f79
@ -0,0 +1 @@
|
||||
[]
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
function flip(){}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
{#each [] as n (n)}
|
||||
{@const a = n}
|
||||
<div animate:flip={a} />
|
||||
{/each}
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
[]
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
function flip() {}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
{#each [] as n (n)} <div animate:flip /> {/each}
|
||||
</div>
|
Loading…
Reference in new issue