Skip to content

Commit

Permalink
fix(link): allow attrs to override behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 13, 2020
1 parent e9eb648 commit 4cae9db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ export const Link = defineComponent({
return h(
'a',
{
...attrs,
class: elClass.value,
'aria-current': link.isExactActive ? 'page' : null,
onClick: link.navigate,
href: link.href,
...attrs,
class: elClass.value,
},
slots.default && slots.default(link)
)
Expand Down

0 comments on commit 4cae9db

Please sign in to comment.