We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff6d041 commit f2309b4Copy full SHA for f2309b4
src/components/MdRipple/MdRipple.vue
@@ -52,7 +52,7 @@
52
watch: {
53
mdActive (active) {
54
const isBoolean = typeof active === 'boolean'
55
- const isEvent = active.constructor.toString().match(/function (\w*)/)[1].toLowerCase() === 'mouseevent'
+ const isEvent = active instanceof MouseEvent
56
57
if (isBoolean && this.mdCentered && active) {
58
this.startRipple({
0 commit comments