Skip to content

Commit 8b22a82

Browse files
committed
Merge pull request #6189 from zpao/sythetic-events-fix
Fix issue with SyntheticEvents and Proxies
2 parents 25c2bfc + f707ee5 commit 8b22a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/dom/client/syntheticEvents/SyntheticEvent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ if (__DEV__) {
190190
/*eslint-disable no-func-assign */
191191
SyntheticEvent = new Proxy(SyntheticEvent, {
192192
construct: function(target, args) {
193-
return this.apply(target, {}, args);
193+
return this.apply(target, Object.create(target.prototype), args);
194194
},
195195
apply: function(constructor, that, args) {
196196
return new Proxy(constructor.apply(that, args), {

0 commit comments

Comments
 (0)