Skip to content

Commit

Permalink
fix(EventOverlay): change document.activeElement to e.target
Browse files Browse the repository at this point in the history
  • Loading branch information
bfbiggs authored and pauljeter committed Aug 26, 2019
1 parent 0b43fa2 commit 8bc25b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/lib/EventOverlay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ class EventOverlay extends React.Component {
return (
this.container
&& anchorNode
&& !anchorNode.contains(document.activeElement)
&& !ReactDOM.findDOMNode(this.container).contains(document.activeElement)
&& !anchorNode.contains(e.target)
&& !ReactDOM.findDOMNode(this.container).contains(e.target)
&& this.handleClickAway(e)
);
}
Expand Down

0 comments on commit 8bc25b5

Please sign in to comment.