diff --git a/src/diff/props.js b/src/diff/props.js index c0d452c0d5..ac23a2cd1d 100644 --- a/src/diff/props.js +++ b/src/diff/props.js @@ -166,7 +166,8 @@ function createEventProxy(useCapture) { } else if (e._dispatched < eventHandler._attached) { return; } - return ("handleEvent" in eventHandler ? eventHandler.handleEvent : eventHandler)(options.event ? options.event(e) : e); + if (options.event) e = options.event(e); + return "handleEvent" in eventHandler ? eventHandler.handleEvent(e) : eventHandler(e); } }; }