mirror of https://github.com/sveltejs/svelte
fix `bind:this` binding to a store (#3591)
parent
2e2b0c9175
commit
8d7d0ff7dd
@ -0,0 +1,4 @@
|
|||||||
|
export default {
|
||||||
|
skip_if_ssr: true,
|
||||||
|
html: `<div>object</div>`
|
||||||
|
};
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
const foo = writable();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div bind:this={$foo}>{typeof $foo}</div>
|
Loading…
Reference in new issue