From eff94ac840a29b90e49207060145337f4a1f93c2 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 17 Mar 2019 16:14:02 -0400 Subject: [PATCH] allow missing fallback --- transition.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; }; }