Skip to content

Commit

Permalink
fix(PrismicLink): forward on:click (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Mar 27, 2024
1 parent d5ff7de commit 7ba9031
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/PrismicLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
```
-->

<a {...linkAttrs} rel={resolvedRel} href={linkAttrs.href} {...$$restProps}>
<a
{...linkAttrs}
rel={resolvedRel}
href={linkAttrs.href}
on:click
{...$$restProps}
>
<slot />
</a>

0 comments on commit 7ba9031

Please sign in to comment.