Skip to content

Commit

Permalink
Stop propagation for buttons too
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLester committed May 29, 2024
1 parent ed1b3fe commit 294d095
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/components/Accordion.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
<div class="heading">
<slot name="title" />
</div>
<div on:click|stopPropagation on:keydown|stopPropagation>
<div
on:click|stopPropagation
on:keydown|stopPropagation
on:keyup|stopPropagation
>
<slot name="actions" />
</div>
</summary>
Expand Down

0 comments on commit 294d095

Please sign in to comment.