mirror of https://github.com/sveltejs/svelte
Merge pull request #1688 from sveltejs/outro-elseif-error
Fixes an error with outros and elseifspull/1690/head
commit
d6fe9b4b84
@ -0,0 +1 @@
|
|||||||
|
<div></div>
|
@ -0,0 +1,8 @@
|
|||||||
|
export default {
|
||||||
|
nestedTransitions: true,
|
||||||
|
|
||||||
|
test ( assert, component, target ) {
|
||||||
|
// Would cause "TypeError: Cannot read property 'o' of undefined"
|
||||||
|
component.set({ foo: false });
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,16 @@
|
|||||||
|
{#if foo}
|
||||||
|
{#if false}
|
||||||
|
<Component/>
|
||||||
|
{:elseif false}
|
||||||
|
<Component/>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Component: './Component.html',
|
||||||
|
},
|
||||||
|
data: () => ({ foo: true }),
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in new issue