From 4f74dd8ca9d0de3bbf1000379bccd1ac86d3f302 Mon Sep 17 00:00:00 2001 From: Ryan Gossiaux Date: Wed, 15 Dec 2021 18:40:00 -0800 Subject: [PATCH] Fix Transition undefined/null bug --- src/lib/components/transitions/TransitionRoot.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/transitions/TransitionRoot.svelte b/src/lib/components/transitions/TransitionRoot.svelte index 363454a..cfa072a 100644 --- a/src/lib/components/transitions/TransitionRoot.svelte +++ b/src/lib/components/transitions/TransitionRoot.svelte @@ -124,7 +124,7 @@ show: boolean | undefined, openClosedState: State | undefined ): boolean | undefined { - if (show === null && openClosedState !== undefined) { + if (show === undefined && openClosedState !== undefined) { return match(openClosedState, { [State.Open]: true, [State.Closed]: false,