Skip to content

Commit

Permalink
Update props.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored Oct 28, 2024
1 parent 4181cba commit 5b99b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function createEventProxy(useCapture) {
} else if (e._dispatched < eventHandler._attached) {
return;
}
return eventHandler(options.event ? options.event(e) : e);
return ("handleEvent" in eventHandler ? eventHandler.handleEvent : eventHandler)(options.event ? options.event(e) : e);
}
};
}
Expand Down

0 comments on commit 5b99b99

Please sign in to comment.