Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local not applied to transition when <svelte:element> has dynamic tag #8233

Closed
jjagielka opened this issue Jan 29, 2023 · 1 comment · Fixed by #8865
Closed

local not applied to transition when <svelte:element> has dynamic tag #8233

jjagielka opened this issue Jan 29, 2023 · 1 comment · Fixed by #8865
Labels
bug compiler Changes relating to the compiler

Comments

@jjagielka
Copy link

Describe the bug

{#if open}
<svelte:element this={tag} transition:slide|local>Transition</svelte:element>
<svelte:element this="div" transition:slide|local>Transition</svelte:element>
{/if}

The first example works with transition, the second just disappear instantly.

Reproduction

https://svelte.dev/repl/d5ad308453534909ab121c532c415fad?version=3.55.1

Logs

No response

System Info

System:
    OS: Linux 6.1 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
    Memory: 10.46 GB / 15.51 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 19.4.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Chromium: 109.0.5414.119
    Firefox: 109.0
  npmPackages:
    svelte: ^3.54.0 => 3.55.1

Severity

annoyance

@probablykasper
Copy link

A bit more minimal reproduction: https://svelte.dev/repl/24a7a05a05d842bdbc26183201722faf?version=3.57.0

The bug has existed since svelte:element was added (v3.47.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug compiler Changes relating to the compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants