Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1247 close settings menu #125

Merged
merged 3 commits into from Jul 6, 2018
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Next
GH-1247 - fix for non standard event path
  • Loading branch information
trickpattyFH20 committed Jul 2, 2018
commit 2035abb0999016b265502c3f0f6be4d9f6c7ca9d
@@ -51,10 +51,13 @@ class ClickOutside extends React.Component {
*/
clickHandler(e) {
const el = this.container;
if (!el.contains(e.target)
&& !el.contains(e.path[0])
const ePath = e.path || (e.composedPath && e.composedPath());
if (
!el.contains(e.target)
&& e.target !== this.props.excludeEl
&& e.path[0] !== this.props.excludeEl) {
&& !el.contains(ePath[0])
&& ePath[0] !== this.props.excludeEl
) {
this.props.onClickOutside(e);
}
}
ProTip! Use n and p to navigate between commits in a pull request.