Fix TransitionChild class when no class prop is passed

This commit is contained in:
Ryan Gossiaux
2021-12-20 22:29:13 -08:00
parent cfe1aaa55e
commit df0939fe22

View File

@@ -163,7 +163,7 @@
// from blowing away the transition classes
$: classes = isTransitioning
? container?.className
: `${$$props.class} ${entered}`;
: `${$$props.class || ""} ${entered}`;
</script>
<div bind:this={container} {...$$restProps} class={classes}>