File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ const DropdownStateMixin = {
4949 handleDocumentClick ( e ) {
5050 // If the click originated from within this component
5151 // don't do anything.
52- if ( isNodeInRoot ( e . target , React . findDOMNode ( this ) ) ) {
52+ // e.srcElement is required for IE8 as e.target is undefined
53+ let target = e . target || e . srcElement ;
54+ if ( isNodeInRoot ( target , React . findDOMNode ( this ) ) ) {
5355 return ;
5456 }
5557
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ export default class RootCloseWrapper extends React.Component {
4242
4343 handleDocumentClick ( e ) {
4444 // If the click originated from within this component, don't do anything.
45- if ( isNodeInRoot ( e . target , React . findDOMNode ( this ) ) ) {
45+ // e.srcElement is required for IE8 as e.target is undefined
46+ let target = e . target || e . srcElement ;
47+ if ( isNodeInRoot ( target , React . findDOMNode ( this ) ) ) {
4648 return ;
4749 }
4850
You can’t perform that action at this time.
0 commit comments