Skip to content

Commit e4b7304

Browse files
authored
fix: ensure outro animation is not prematurely aborted (#12865)
1 parent 72c51e3 commit e4b7304

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changeset/lazy-carrots-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: ensure outro animation is not prematurely aborted

packages/svelte/src/internal/client/dom/elements/transitions.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ export function transition(flags, element, get_fn, get_params) {
251251
0,
252252
() => {
253253
dispatch_event(element, 'outroend');
254-
// Ensure we cancel the animation to prevent leaking
255-
outro?.abort();
256254
outro = current_options = undefined;
257255
fn?.();
258256
},

0 commit comments

Comments
 (0)