Skip to content

Commit

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

Addresses facebook#7320
  • Loading branch information
gregpalmer committed Aug 3, 2016
1 parent d1cff59 commit e3c6972
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.preventDefault !== 'unknown') { // eslint-disable-line valid-typeof
event.returnValue = false;
}
this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
Expand Down

0 comments on commit e3c6972

Please sign in to comment.