From 145876681f03f68d2fcdd4f0339f6b2b9f7b9958 Mon Sep 17 00:00:00 2001
From: enahum <nahumhbl@gmail.com>
Date: Mon, 5 Dec 2016 10:19:12 -0300
Subject: Fix react warnings and part of backstage (#4706)

---
 webapp/components/rhs_dropdown.jsx | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

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

diff --git a/webapp/components/rhs_dropdown.jsx b/webapp/components/rhs_dropdown.jsx
index c42e8c8e5..882fdcf68 100644
--- a/webapp/components/rhs_dropdown.jsx
+++ b/webapp/components/rhs_dropdown.jsx
@@ -18,11 +18,7 @@ export default class RhsDropdown extends React.Component {
         };
     }
 
-    toggleDropdown(e) {
-        if (e) {
-            e.preventDefault();
-        }
-
+    toggleDropdown() {
         const showDropdown = !this.state.showDropdown;
         if (Agent.isMobile() || Agent.isMobileApp()) {
             const scroll = document.querySelector('.scrollbar--view');
@@ -39,8 +35,9 @@ export default class RhsDropdown extends React.Component {
     render() {
         return (
             <Dropdown
+                id='rhs_dropdown'
                 open={this.state.showDropdown}
-                onClose={this.toggleDropdown}
+                onToggle={this.toggleDropdown}
             >
                 <a
                     href='#'
-- 
cgit v1.2.3-1-g7c22

