Skip to content

Commit

Permalink
Avoid "Member not found" error in IE (#7411)
Browse files Browse the repository at this point in the history
Explanation, discussion, and similar change as #7343

Addresses #7320
(cherry picked from commit a874196)
  • Loading branch information
Greg Palmer authored and zpao committed Sep 15, 2016
1 parent 4be3776 commit 08dbefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/dom/client/syntheticEvents/SyntheticEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Object.assign(SyntheticEvent.prototype, {

if (event.preventDefault) {
event.preventDefault();
} else {
} else if (typeof event.returnValue !== 'unknown') { // eslint-disable-line valid-typeof
event.returnValue = false;
}
this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
Expand Down

0 comments on commit 08dbefe

Please sign in to comment.