mirror of https://github.com/sveltejs/svelte
propagate scope changes across chained slots - fixes #2359
parent
3c840aad88
commit
07ecdb1849
@ -0,0 +1 @@
|
||||
<slot/>
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Inner from './Inner.svelte';
|
||||
</script>
|
||||
|
||||
<Inner>
|
||||
<slot/>
|
||||
</Inner>
|
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
html: 'one',
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.text = 'two';
|
||||
assert.htmlEqual(target.innerHTML, `two`);
|
||||
}
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Outer from './Outer.svelte';
|
||||
|
||||
export let text = 'one';
|
||||
</script>
|
||||
|
||||
<Outer>
|
||||
{text}
|
||||
</Outer>
|
Loading…
Reference in new issue