From: Eduardo San Martin Morote Date: Fri, 13 Mar 2020 15:16:14 +0000 (+0100) Subject: fix(link): allow attrs to override behavior X-Git-Tag: v4.0.0-alpha.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cae9dbede993a79577691e1df4444a8fe5ca3a0;p=thirdparty%2Fvuejs%2Frouter.git fix(link): allow attrs to override behavior --- diff --git a/src/components/Link.ts b/src/components/Link.ts index 157e6084..bd17b7d5 100644 --- a/src/components/Link.ts +++ b/src/components/Link.ts @@ -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) )