Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Aug 18, 2023
1 parent d1b249f commit 92c833c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/lib/bits/menubar/components/MenubarContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@
export let sideOffset: $$Props["sideOffset"] = 4;
export let asChild = false;
const {
elements: { menu },
states: { open }
elements: { menu }
} = ctx.getContent(sideOffset);
</script>

<!-- svelte-ignore a11y-no-static-element-interactions / applied by melt's builder-->
{#if $open}
{#if asChild}
{#if asChild}
<slot builder={$menu} />
{:else}
<div use:melt={$menu} {...$$restProps} on:m-keydown>
<slot builder={$menu} />
{:else}
<div use:melt={$menu} {...$$restProps} on:m-keydown>
<slot builder={$menu} />
</div>
{/if}
</div>
{/if}

0 comments on commit 92c833c

Please sign in to comment.