mirror of https://github.com/sveltejs/svelte
fix: ensure keyed fallback to indexed (#9441)
Fixes #9408. Ensures that if we have a key that matches the index, that we fallback to using an indexed each block.pull/9446/head
parent
da37c928ef
commit
cf63220a0e
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
patch: ensure keyed each block fallback to indexed each block
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: '1'
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
{#each [1] as item, i (i)}
|
||||
{item}
|
||||
{/each}
|
Loading…
Reference in new issue