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
  • Loading branch information
Greg Palmer authored and aweary committed Aug 19, 2016
1 parent 6a65960 commit a874196
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 a874196

Please sign in to comment.