mirror of https://github.com/sveltejs/svelte
fix: omit this bind this arg if we know it's not a signal (#9635)
fixes #9629 Co-authored-by: Dominic Gannaway <dg@domgan.com>pull/9642/head
parent
dee5bed829
commit
7f237c2e41
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: omit this bind this arg if we know it's not a signal
|
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
async test({ assert, target, component }) {
|
||||
assert.equal(target.querySelector('img'), component.items[0].img);
|
||||
}
|
||||
});
|
@ -0,0 +1,11 @@
|
||||
<script>
|
||||
let { items = [{ src: 'https://ds' }] } = $props();
|
||||
</script>
|
||||
|
||||
{#each items as item, i}
|
||||
<img
|
||||
src={item.src}
|
||||
bind:this={items[i].img}
|
||||
alt="slider{i}"
|
||||
/>
|
||||
{/each}
|
Loading…
Reference in new issue