diff --git a/transition.mjs b/transition.mjs index 8c51e5e901..bb0ce694f2 100644 --- a/transition.mjs +++ b/transition.mjs @@ -129,7 +129,7 @@ export function crossfade({ fallback, ...defaults }) { // (i.e. wasn't claimed by the other list) // then we need to supply an outro items.delete(params.key); - return fallback(node, params, intro); + return fallback && fallback(node, params, intro); }; }; }