Fix TransitionChild class when no class prop is passed
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user