fix: ensure outro animation is not prematurely aborted (#12865)

pull/12870/head
Dominic Gannaway 1 month ago committed by GitHub
parent 72c51e3df7
commit e4b7304365
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: ensure outro animation is not prematurely aborted

@ -251,8 +251,6 @@ export function transition(flags, element, get_fn, get_params) {
0,
() => {
dispatch_event(element, 'outroend');
// Ensure we cancel the animation to prevent leaking
outro?.abort();
outro = current_options = undefined;
fn?.();
},

Loading…
Cancel
Save