Skip to content

Commit

Permalink
Prevents click bubbling on Pin button
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Feb 20, 2024
1 parent 779fc4d commit 22f2f16
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/common/Pin.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
}px;`;
</script>

<button class="pin" class:active class:disabled on:click style={cssVarStyles}>
<button
class="pin"
class:active
class:disabled
on:click|stopPropagation|preventDefault
style={cssVarStyles}
>
<Pin {title} {size} />
</button>

Expand Down

0 comments on commit 22f2f16

Please sign in to comment.