From 8dde651ded58a28d29dfc75c2856450c3a9b5be1 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Wed, 29 Mar 2017 11:07:10 -0400
Subject: Remove user from list when selected in DM modal (#5884)

---
 webapp/components/sidebar.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'webapp/components/sidebar.jsx')

diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index b9356c5a1..b6a5b0ba8 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -677,7 +677,10 @@ export default class Sidebar extends React.Component {
             <li key='more'>
                 <a
                     href='#'
-                    onClick={() => this.showMoreDirectChannelsModal()}
+                    onClick={(e) => {
+                        e.preventDefault();
+                        this.showMoreDirectChannelsModal();
+                    }}
                 >
                     <FormattedMessage
                         id='sidebar.moreElips'
-- 
cgit v1.2.3-1-g7c22

