diff --git a/src/core/view/plugins/index.js b/src/core/view/plugins/index.js index adf01507c8fe8dbe6458cee13aa08dda7ed8e10f..abb234ea611489e6f078b7b34c409983099ab52a 100644 --- a/src/core/view/plugins/index.js +++ b/src/core/view/plugins/index.js @@ -63,10 +63,17 @@ export default { const currentTarget = $event.currentTarget const instance = currentTarget && currentTarget.__vue__ && - currentTarget.__vue__.$getComponentDescriptor(currentTarget.__vue__, false) - $event = processEvent.call(this, $event.type, $event, {}, findUniTarget($event, this.$el) || $event.target, - $event.currentTarget) - $event.instance = instance + currentTarget.__vue__.$getComponentDescriptor(currentTarget.__vue__, false) + const $origEvent = $event + $event = processEvent.call(this, $origEvent.type, $origEvent, {}, findUniTarget($origEvent, this.$el) || $origEvent.target, + $origEvent.currentTarget) + $event.instance = instance + $event.preventDefault = function () { + return $origEvent.preventDefault() + } + $event.stopPropagation = function () { + return $origEvent.stopPropagation() + } } return $event }