We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398bf7e commit 96541d5Copy full SHA for 96541d5
src/directives/on.js
@@ -19,10 +19,12 @@ module.exports = {
19
utils.warn('Directive "on" expects a function value.')
20
return
21
}
22
- var targetVM = this.vm,
+ var el = this.el,
23
+ targetVM = this.vm,
24
ownerVM = this.binding.compiler.vm,
25
isExp = this.binding.isExp,
26
newHandler = function (e) {
27
+ e.targetEl = el
28
e.targetVM = targetVM
29
handler.call(isExp ? targetVM : ownerVM, e)
30
0 commit comments