fix children prop passing
This commit is contained in:
parent
934706961d
commit
137b637491
3 changed files with 9 additions and 3 deletions
|
|
@ -10,7 +10,9 @@
|
|||
</script>
|
||||
|
||||
{#if browser}
|
||||
<CollapsiblePrimitive.Content bind:ref data-slot="collapsible-content" {...restProps} />
|
||||
<CollapsiblePrimitive.Content bind:ref data-slot="collapsible-content" {...restProps}>
|
||||
{@render children?.()}
|
||||
</CollapsiblePrimitive.Content>
|
||||
{:else}
|
||||
<div data-slot="collapsible-content" {...restProps}>
|
||||
{@render children?.()}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
</script>
|
||||
|
||||
{#if browser}
|
||||
<CollapsiblePrimitive.Trigger bind:ref data-slot="collapsible-trigger" {...restProps} />
|
||||
<CollapsiblePrimitive.Trigger bind:ref data-slot="collapsible-trigger" {...restProps}>
|
||||
{@render children?.()}
|
||||
</CollapsiblePrimitive.Trigger>
|
||||
{:else}
|
||||
<button data-slot="collapsible-trigger" {...restProps}>
|
||||
{@render children?.()}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
</script>
|
||||
|
||||
{#if browser}
|
||||
<CollapsiblePrimitive.Root bind:ref bind:open data-slot="collapsible" {...restProps} />
|
||||
<CollapsiblePrimitive.Root bind:ref bind:open data-slot="collapsible" {...restProps}>
|
||||
{@render children?.()}
|
||||
</CollapsiblePrimitive.Root>
|
||||
{:else}
|
||||
<div data-slot="collapsible">
|
||||
{@render children?.()}
|
||||
|
|
|
|||
Reference in a new issue