mirror of https://github.com/sveltejs/svelte
fix: improve each block index handling (#9889)
parent
bdd63c8187
commit
7238e1d3ce
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: improve each block index handling
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<div>0</div><div>1</div>`
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
{#each {length: 2} as item, i (`${i}`)}
|
||||
<div>{i}</div>
|
||||
{/each}
|
Loading…
Reference in new issue