Skip to content

Commit f2309b4

Browse files
committed
Fix checking mouseevent in IE11
1 parent ff6d041 commit f2309b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MdRipple/MdRipple.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
watch: {
5353
mdActive (active) {
5454
const isBoolean = typeof active === 'boolean'
55-
const isEvent = active.constructor.toString().match(/function (\w*)/)[1].toLowerCase() === 'mouseevent'
55+
const isEvent = active instanceof MouseEvent
5656
5757
if (isBoolean && this.mdCentered && active) {
5858
this.startRipple({

0 commit comments

Comments
 (0)