Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seare Kidane authored and Seare Kidane committed Apr 5, 2020
1 parent ddfe13f commit a004b70
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ const ClickAwayListener = React.forwardRef(function ClickAwayListener(props, ref
// Multi window support
const doc = ownerDocument(nodeRef.current);

if (
doc.documentElement.contains(event.target) &&
!nodeRef.current.contains(event.target)
) {
if (doc.documentElement.contains(event.target) && !nodeRef.current.contains(event.target)) {
onClickAway(event);
}
});
Expand Down

0 comments on commit a004b70

Please sign in to comment.