mirror of https://github.com/sveltejs/svelte
[fix] propagate bindings correctly (#8114)
Fixes #8103 introduced through #7981 Keeps the infinite loop from happening but reopens #6298 and #5689pull/8160/head
parent
1d658e7501
commit
762d0429b1
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
export let value;
|
||||
value = "bar";
|
||||
</script>
|
||||
|
||||
Child component "{value}"<br />
|
@ -1,7 +1,8 @@
|
||||
export default {
|
||||
async test({ assert, target }) {
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<p>0</p>
|
||||
Parent component "bar"<br />
|
||||
Child component "bar"<br />
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import Component from "./Component.svelte";
|
||||
|
||||
let value = "foo";
|
||||
</script>
|
||||
|
||||
Parent component "{value}"<br />
|
||||
<Component bind:value />
|
@ -0,0 +1,10 @@
|
||||
// this test currently fails because the fix that made it pass broke other tests,
|
||||
// see https://github.com/sveltejs/svelte/pull/8114 for more context.
|
||||
export default {
|
||||
skip: true,
|
||||
async test({ assert, target }) {
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<p>0</p>
|
||||
`);
|
||||
}
|
||||
};
|
Loading…
Reference in new issue