Skip to content

Outro transition not playing if inside #if #each #2689

@bwbroersma

Description

@bwbroersma

I would expect all items to have the same intro en outro effect, see the bug in action in this REPL demo in version 3.2.0.

The code:

<script>
	import { fade } from 'svelte/transition';
	let checked = true;
</script>

<label>
	<input type=checkbox bind:checked> Trigger
</label>

{#if checked}
	{#each [1] as x }
		<p in:fade out:fade>if each in out</p>
		<p transition:fade>if each transition</p>
	{/each}
	<p in:fade out:fade>if in out</p>
	<p transition:fade>if transition</p>
{/if}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions