diff --git a/src/DropdownStateMixin.js b/src/DropdownStateMixin.js index 586e905217..368c743c93 100644 --- a/src/DropdownStateMixin.js +++ b/src/DropdownStateMixin.js @@ -49,7 +49,9 @@ const DropdownStateMixin = { handleDocumentClick(e) { // If the click originated from within this component // don't do anything. - if (isNodeInRoot(e.target, React.findDOMNode(this))) { + // e.srcElement is required for IE8 as e.target is undefined + let target = e.target || e.srcElement; + if (isNodeInRoot(target, React.findDOMNode(this))) { return; } diff --git a/src/RootCloseWrapper.js b/src/RootCloseWrapper.js index ac5fd7cf18..c03ea2a848 100644 --- a/src/RootCloseWrapper.js +++ b/src/RootCloseWrapper.js @@ -42,7 +42,9 @@ export default class RootCloseWrapper extends React.Component { handleDocumentClick(e) { // If the click originated from within this component, don't do anything. - if (isNodeInRoot(e.target, React.findDOMNode(this))) { + // e.srcElement is required for IE8 as e.target is undefined + let target = e.target || e.srcElement; + if (isNodeInRoot(target, React.findDOMNode(this))) { return; }