From 51f28bfac96bbb14ea0175c796e0d18fff3b2cc5 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 26 Jul 2023 16:19:36 +0530 Subject: [PATCH] fix(theme): fix feature component always generating anchor tags --- src/client/theme-default/components/VPLink.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/theme-default/components/VPLink.vue b/src/client/theme-default/components/VPLink.vue index daf85508..426a2544 100644 --- a/src/client/theme-default/components/VPLink.vue +++ b/src/client/theme-default/components/VPLink.vue @@ -11,7 +11,7 @@ const props = defineProps<{ rel?: string }>() -const tag = computed(() => props.tag ?? props.href ? 'a' : 'span') +const tag = computed(() => props.tag ?? (props.href ? 'a' : 'span')) const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href))