Skip to content

Transitions break basic functionality #3202

@arggh

Description

@arggh

Sorry for the vague title. It's late.

Using transitions seems to break basic functionality in some circumstances. By basic functionality I mean a simple if clause in the template, like so:

{#if condition}
   <Child/>
{/if}

...where the <Child/> is using transitions.

Reproduction: https://svelte.dev/repl/2e801ddf39f646709a3aa1b74f727f71?version=3.6.5

Instructions (also included in the REPL):

  1. Click the button to show the child component
  2. Write something in the input to reveal (with an animation) the close-button
  3. Click the close button and observe how the app breaks (not closing the child component)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions