Skip to content

Commit

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

Addresses facebook#7320
  • Loading branch information
gmp committed Aug 12, 2016
1 parent c8f7215 commit 9560eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/shared/stack/event/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 9560eda

Please sign in to comment.