Skip to content

Commit

Permalink
Fix checking mouseevent in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
kmsheng committed Jul 4, 2019
1 parent ff6d041 commit f2309b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdRipple/MdRipple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
watch: {
mdActive (active) {
const isBoolean = typeof active === 'boolean'
const isEvent = active.constructor.toString().match(/function (\w*)/)[1].toLowerCase() === 'mouseevent'
const isEvent = active instanceof MouseEvent
if (isBoolean && this.mdCentered && active) {
this.startRipple({
Expand Down

0 comments on commit f2309b4

Please sign in to comment.