Skip to content

Commit

Permalink
fixes setting both href and to in BaseButton's NuxtLink
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 9, 2024
1 parent cb90c4d commit f717dbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vue/src/components/BaseButton/BaseButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export default defineComponent({
// must account for <a>, <nuxt-link>, and <button> use-cases
theHref(): string | undefined {
let href = undefined
if (this.computedTo && typeof this.computedTo === 'string') {
href = this.computedTo
} else if (this.tag === 'a') {
if (this.tag === 'a') {
href = this.href
}
return href
Expand Down

0 comments on commit f717dbf

Please sign in to comment.