From 391ab0d8bce396bcb20a663dbe43213fb8382589 Mon Sep 17 00:00:00 2001 From: Ahmad Alkhawaja Date: Wed, 1 Sep 2021 17:43:57 +0400 Subject: [PATCH] Fixed adding copilot bug in new milestone management --- .../components/AddCopilotsSidebar/AddCopilotsSidebar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/projects/detail/components/SimplePlan/components/AddCopilotsSidebar/AddCopilotsSidebar.jsx b/src/projects/detail/components/SimplePlan/components/AddCopilotsSidebar/AddCopilotsSidebar.jsx index 1b12cf1f7..733933f3f 100644 --- a/src/projects/detail/components/SimplePlan/components/AddCopilotsSidebar/AddCopilotsSidebar.jsx +++ b/src/projects/detail/components/SimplePlan/components/AddCopilotsSidebar/AddCopilotsSidebar.jsx @@ -31,11 +31,11 @@ class AddCopilotsSidebar extends React.Component { } componentDidMount() { - document.addEventListener('click', this.onClickOutside) + document.addEventListener('mousedown', this.onClickOutside) } componentWillUnmount() { - document.removeEventListener('click', this.onClickOutside) + document.removeEventListener('mousedown', this.onClickOutside) } render() {