Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(card): fix similar bug #377 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychenjiajun authored Aug 12, 2019
1 parent 24d6a26 commit 257952b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/card/CardPrimaryAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@ export default {
},
watch: {
ripple () {
if (!this.ripple && this.mdcRipple) {
this.mdcRipple.destroyed()
if (this.ripple) {
if (this.mdcRipple) {
this.mdcRipple.destroy()
}
MDCRipple.attachTo(this.$el)
} else {
if (this.mdcRipple) {
this.mdcRipple.destroy()
}
this.mdcRipple = undefined
}
if (this.ripple) this.mdcRipple = MDCRipple.attachTo(this.$el)
}
},
mounted () {
Expand Down

0 comments on commit 257952b

Please sign in to comment.