Skip to content

Commit 08dbefe

Browse files
Greg Palmerzpao
Greg Palmer
authored andcommitted
Avoid "Member not found" error in IE (#7411)
Explanation, discussion, and similar change as #7343 Addresses #7320 (cherry picked from commit a874196)
1 parent 4be3776 commit 08dbefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/dom/client/syntheticEvents/SyntheticEvent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Object.assign(SyntheticEvent.prototype, {
121121

122122
if (event.preventDefault) {
123123
event.preventDefault();
124-
} else {
124+
} else if (typeof event.returnValue !== 'unknown') { // eslint-disable-line valid-typeof
125125
event.returnValue = false;
126126
}
127127
this.isDefaultPrevented = emptyFunction.thatReturnsTrue;

0 commit comments

Comments
 (0)