From 9c5d348c034eb6773562c93cad699d287051aa7b Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Sat, 7 Sep 2024 13:22:35 +0800 Subject: [PATCH] fix(theme): respect custom tag prop in VPButton component (#4185) --- src/client/theme-default/components/VPButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/theme-default/components/VPButton.vue b/src/client/theme-default/components/VPButton.vue index 3b9152f2..b37efa84 100644 --- a/src/client/theme-default/components/VPButton.vue +++ b/src/client/theme-default/components/VPButton.vue @@ -22,7 +22,7 @@ const isExternal = computed( ) const component = computed(() => { - return props.tag || props.href ? 'a' : 'button' + return props.tag || (props.href ? 'a' : 'button') })