Skip to content

Commit

Permalink
feat(router): use au-href custom attribute for links
Browse files Browse the repository at this point in the history
  • Loading branch information
jwx committed Oct 8, 2019
1 parent ebf9166 commit fe211c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/src/link-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class LinkHandler {
return info;
}

const auHref: string | null = target.hasAttribute('au-href') ? target.getAttribute('au-href') : null;
const auHref: string | null = '$auHref' in target ? Reflect.get(target, '$auHref') : null;
const href: string | null = options.useHref && target.hasAttribute('href') ? target.getAttribute('href') : null;
if ((auHref === null || auHref.length === 0) && (href === null || href.length === 0)) {
return info;
Expand Down

0 comments on commit fe211c4

Please sign in to comment.