@samitouri / QOS-React / commits / a8741963dc

Avoid "Member not found" error in IE (#7411)

Explanation, discussion, and similar change as #7343 Addresses #7320

Greg Palmer committed Aug 19, 2016 at 13:43 UTC a8741963dc661432caa906c295a0477691bad614
1 file changed +1 -1
src/renderers/shared/stack/event/SyntheticEvent.js
+1 -1
@@ -121,7 +121,7 @@ Object.assign(SyntheticEvent.prototype, {
121
122 if (event.preventDefault) {
123 event.preventDefault();
124 - } else {
124 + } else if (typeof event.returnValue !== 'unknown') { // eslint-disable-line valid-typeof
125 event.returnValue = false;
126 }
127 this.isDefaultPrevented = emptyFunction.thatReturnsTrue;