diff --git a/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js b/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js index 67326b7b0cb349..688f6147095e4c 100644 --- a/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js +++ b/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js @@ -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); } });