We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using an element that renders based on a variable:
{#if showDiv} <div out:fly={{x: 7, y: 7, duration: 150}} in:fly={{x: 7, y: 7, duration: 150}}>hi</div> {/if}
Every time you toggle showDiv, a style tag is created and then emptied but remains in the DOM indefinitely:
Removing the transitions solves the issue.
EDIT:
Reproduced (keep right clicking and see style tags get created and fail to clean up: https://svelte.dev/repl/c89a3e9fb2ab4932bc0624e338ee147e?version=3.46.2
Too lazy to go and figure out which version broke, but 3.25.x doesn't leak, latest version(s) leak.
No error logs.
System: OS: macOS 12.0.1 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 957.99 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.18.2 - ~/.nvm/versions/node/v14.18.2/bin/node npm: 8.2.0 - ~/.nvm/versions/node/v14.18.2/bin/npm Browsers: Chrome: 97.0.4692.71 Firefox: 96.0.2 Safari: 15.1 npmPackages: svelte: ^3.0.0 => 3.46.2 webpack: ^5.35.0 => 5.66.0
annoyance
The text was updated successfully, but these errors were encountered:
Seems related to #7119 as that transition issue also doesn't happen on 3.25.0.
Looks like a race condition...
Sorry, something went wrong.
Duplicate of #7164 ?
I'm also having this problem. Based on your Repl, it looks like it occurs on 3.46.0 but not 3.45.0.
3.46.0 added the style: directive so that's probably the cause of the issue.
style:
Yeah looks like a duplicate of #7164. Let's move the discussion there.
No branches or pull requests
Describe the bug
Using an element that renders based on a variable:
Every time you toggle showDiv, a style tag is created and then emptied but remains in the DOM indefinitely:
Removing the transitions solves the issue.
Reproduction
EDIT:
Reproduced (keep right clicking and see style tags get created and fail to clean up:
https://svelte.dev/repl/c89a3e9fb2ab4932bc0624e338ee147e?version=3.46.2
Too lazy to go and figure out which version broke, but 3.25.x doesn't leak, latest version(s) leak.
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: