File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ const DropdownStateMixin = {
49
49
handleDocumentClick ( e ) {
50
50
// If the click originated from within this component
51
51
// 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 ) ) ) {
53
55
return ;
54
56
}
55
57
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ export default class RootCloseWrapper extends React.Component {
42
42
43
43
handleDocumentClick ( e ) {
44
44
// 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 ) ) ) {
46
48
return ;
47
49
}
48
50
You can’t perform that action at this time.
0 commit comments