Skip to content

Commit

Permalink
fix: allow external value on links
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Nov 27, 2024
1 parent 3509fb8 commit cf5d67c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/LinkTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ const props = defineProps({
default: undefined,
},
external: Boolean,
// A slew of normal attributes that can be passed to the link
id: {
type: [String, Number],
Expand Down Expand Up @@ -234,6 +236,8 @@ const isLink = computed(() => !!props.to || !!props.href);
const linkBindings = computed(() => {
return {
href: isLink.value ? props.href : null,
to: isLink.value && !props.href ? props.to : null,
external: isLink.value ? props.external : null,
target: isLink.value ? props.target : null,
title: props.title,
tabindex: props.tabindex,
Expand Down

0 comments on commit cf5d67c

Please sign in to comment.