Fix side panel issue where content from multiple side panels would be shown
This commit is contained in:
parent
b03bf753a0
commit
74a8eba2fa
|
@ -47,7 +47,10 @@
|
||||||
// Apply initial visibility
|
// Apply initial visibility
|
||||||
update(visible)
|
update(visible)
|
||||||
|
|
||||||
return { update }
|
return {
|
||||||
|
update,
|
||||||
|
destroy: () => update(false),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -57,7 +60,7 @@
|
||||||
class="side-panel"
|
class="side-panel"
|
||||||
class:open
|
class:open
|
||||||
>
|
>
|
||||||
{#if $sidePanelStore.open}
|
{#if open}
|
||||||
<slot />
|
<slot />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue