Skip to content

Snippet with conditional transition is not working #15266

Closed as not planned
Closed as not planned
@TUTOR03

Description

@TUTOR03

Describe the bug

For example you have a snippet accepting some boolean value as prop and showing content if this prop is true. Content inside snippet has transition on it. Also the snippet is rendered based on some condition in the parent component.
Even the prop you pass to snippet is alway true, the transition does not happen.

Reproduction

Check this playground reproduction

2025-02-11.16-18-07.mp4

https://svelte.dev/playground/hello-world?version=5.19.9#H4sIAAAAAAAAA31QTU_DMAz9K16GtFWaKELiUtoKbnDnRjl0jTsiMqdKvA0U5b-jpIUVgbjFz-8r9oLaPYpCPKDWBk7GaglrlIpRZmIjeqXRieLZC_4YIi8CYvOluh-GS3dEzRHbtg7_wjtDjMROFKJ0nVUD1w0BqP1gLIOHvpUIAXpr9rAaVTnblpxiZWh121DDGhncqzlBBReOW8Z132qH2Xz3SIT2N6HMv0Mb8ktHahiQQUX2OuqyEF38UvXJJk0Nl1Id4VyjiC0r7-XBtmmG65urEOqR3HC636TMpTqmhc9VHxry-RQaxgo_g_ydRZJoZ43ST7KkTAYRK8BPonJr83oEE3HapPd5XW4PzIbAUKdV91b5dVbV0wkXyal-MrudxtSlzEf6f8Kv-y7OaXOLhMx8xEYwvrMo2B4wvIRPdZI9WmsCAAA=

Logs

System Info

-

Severity

annoyance

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