Skip to content

Commit eccd0f9

Browse files
Preserve event handler return values (#3812)
I'm not aware of any bugs caused by this, but currently we drop the return value of event handlers rather than returning it to the DOM. This corrects that. Co-authored-by: Andre Wiggins <[email protected]>
1 parent d5c9d72 commit eccd0f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diff/props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ export function setProperty(dom, name, value, oldValue, isSvg) {
108108
* @private
109109
*/
110110
function eventProxy(e) {
111-
this._listeners[e.type + false](options.event ? options.event(e) : e);
111+
return this._listeners[e.type + false](options.event ? options.event(e) : e);
112112
}
113113

114114
function eventProxyCapture(e) {
115-
this._listeners[e.type + true](options.event ? options.event(e) : e);
115+
return this._listeners[e.type + true](options.event ? options.event(e) : e);
116116
}

0 commit comments

Comments
 (0)