mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Avoid "Member not found" error in IE (#7411)
Explanation, discussion, and similar change as #7343
Addresses #7320
(cherry picked from commit a8741963dc)
This commit is contained in:
committed by
Paul O’Shannessy
parent
4be377650e
commit
08dbefedc7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user