Skip to content

Commit

Permalink
fix: update menu button ref forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Jun 24, 2024
1 parent 6348378 commit d09b5ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/menu/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
</script>

<Popover let:close {placement}>
<slot slot="button" name="button" let:buttonRef {buttonRef} />
<svelte:fragment slot="button" let:buttonRef>
<slot name="button" {buttonRef} />
</svelte:fragment>

<div class="menu">
<slot {close} />
Expand Down

0 comments on commit d09b5ff

Please sign in to comment.