Skip to content

Commit e7f8f34

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdButton): fix events when ripple is on (#1532)
1 parent c820b72 commit e7f8f34

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/components/MdButton/MdButton.vue

+6-9
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,24 @@
6464
on: {
6565
...this.$listeners,
6666
touchstart: event => {
67-
if (!this.rippleWorks) {
68-
return false
67+
if (this.rippleWorks) {
68+
this.rippleActive = event
6969
}
7070
71-
this.rippleActive = event
7271
this.$listeners.touchstart && this.$listeners.touchstart(event)
7372
},
7473
touchmove: event => {
75-
if (!this.rippleWorks) {
76-
return false
74+
if (this.rippleWorks) {
75+
this.rippleActive = event
7776
}
7877
79-
this.rippleActive = event
8078
this.$listeners.touchmove && this.$listeners.touchmove(event)
8179
},
8280
mousedown: event => {
83-
if (!this.rippleWorks) {
84-
return false
81+
if (this.rippleWorks) {
82+
this.rippleActive = event
8583
}
8684
87-
this.rippleActive = event
8885
this.$listeners.mousedown && this.$listeners.mousedown(event)
8986
}
9087
}

0 commit comments

Comments
 (0)