Skip to content

Commit

Permalink
fix: button minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
untael committed May 17, 2021
1 parent 76f7818 commit 9025e4e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,14 @@ export default class VaButton extends mixins(
get computedType () {
// Safari issue. type===button will break styles if the button is used as a link
return this.tagComputed === 'button' ? 'button' : undefined
switch (this.tagComputed) {
case 'a':
case 'router-link':
case 'nuxt-link':
return undefined
default:
return this.type
}
}
get isTransparentBackground () {
Expand Down

0 comments on commit 9025e4e

Please sign in to comment.