We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25c2bfc + f707ee5 commit 8b22a82Copy full SHA for 8b22a82
src/renderers/dom/client/syntheticEvents/SyntheticEvent.js
@@ -190,7 +190,7 @@ if (__DEV__) {
190
/*eslint-disable no-func-assign */
191
SyntheticEvent = new Proxy(SyntheticEvent, {
192
construct: function(target, args) {
193
- return this.apply(target, {}, args);
+ return this.apply(target, Object.create(target.prototype), args);
194
},
195
apply: function(constructor, that, args) {
196
return new Proxy(constructor.apply(that, args), {
0 commit comments