Skip to content

Commit

Permalink
Merge pull request #36 from huntabyte/fix/popover-asChild
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Aug 13, 2023
2 parents 688e07f + a70a5ed commit 575ea08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-wolves-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@huntabyte/primitives": patch
---

fix popover aschild
4 changes: 2 additions & 2 deletions src/lib/primitives/popover/components/PopoverTrigger.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</script>

{#if asChild}
<slot builder="$trigger}" />
<slot builder={$trigger} />
{:else}
<button use:melt={$trigger} {...$$restProps} on:m-click on:m-keydown>
<slot builder="$trigger}" />
<slot builder={$trigger} />
</button>
{/if}

0 comments on commit 575ea08

Please sign in to comment.