Skip to content

Commit

Permalink
fix(theme): respect custom tag prop in VPButton component (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileychh authored Sep 7, 2024
1 parent 6b4439a commit 9c5d348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const isExternal = computed(
)
const component = computed(() => {
return props.tag || props.href ? 'a' : 'button'
return props.tag || (props.href ? 'a' : 'button')
})
</script>

Expand Down

0 comments on commit 9c5d348

Please sign in to comment.