-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Co-authored-by: tanhauhau <[email protected]> Co-authored-by: Tan Li Hau <[email protected]>
- Loading branch information
1 parent
e4a3a87
commit a4e4027
Showing
6 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
10 changes: 10 additions & 0 deletions
10
test/validator/samples/animation-each-with-const/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script> | ||
function flip(){} | ||
</script> | ||
|
||
<div> | ||
{#each [] as n (n)} | ||
{@const a = n} | ||
<div animate:flip={a} /> | ||
{/each} | ||
</div> |
1 change: 1 addition & 0 deletions
1
test/validator/samples/animation-each-with-whitespace/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
7 changes: 7 additions & 0 deletions
7
test/validator/samples/animation-each-with-whitespace/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script> | ||
function flip() {} | ||
</script> | ||
|
||
<div> | ||
{#each [] as n (n)} <div animate:flip /> {/each} | ||
</div> |