Skip to content

Commit

Permalink
refactor: use mouseup instead of click on context-menu items (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb authored Mar 28, 2024
1 parent 1f78e68 commit 1acee27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/context-menu/ContextMenuItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
on:mouseenter
on:mouseleave
use:useActions={use}
on:click|preventDefault={() => dispatch('click')}
on:mouseup|preventDefault={() => dispatch('click')}
>
<slot />
</div>
Expand Down

0 comments on commit 1acee27

Please sign in to comment.