Skip to content

Svelte 5: Element being re-mounted when input transition is changed within an #if block #9932

@Thiagolino8

Description

@Thiagolino8

Describe the bug

If an element inside an #if block has its intro transition changed after being mounted (either with the in: or transition: directive) the intro transition is executed again and the action also runs again (but only the first time the transition changes after the element is mounted)
msedge_6SQGpCIBMi

Reproduction

Reproduction

Logs

No response

System Info

App.svelte (Svelte v5.0.0-next.25)

Severity

blocking an upgrade

Metadata

Metadata

Assignees

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