Don't render Transition contents if they're not visible

Fixes #14
This commit is contained in:
Ryan Gossiaux
2021-12-14 13:54:34 -08:00
parent 02bb968396
commit 0185f9f9f6

View File

@@ -168,6 +168,8 @@
setContext(TRANSITION_CONTEXT_NAME, transitionBag); setContext(TRANSITION_CONTEXT_NAME, transitionBag);
</script> </script>
{#if state === TreeStates.Visible}
<TransitionChild {...$$restProps} {unmount}> <TransitionChild {...$$restProps} {unmount}>
<slot /> <slot />
</TransitionChild> </TransitionChild>
{/if}