diff options
author | enahum <nahumhbl@gmail.com> | 2016-12-05 10:19:12 -0300 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-12-05 08:19:12 -0500 |
commit | 145876681f03f68d2fcdd4f0339f6b2b9f7b9958 (patch) | |
tree | a1d46412813338d5e9453e3fc515dd52188cef91 /webapp/components/rhs_dropdown.jsx | |
parent | 05783664cd91e278913db5504e60bb8bc2992cb6 (diff) | |
download | chat-145876681f03f68d2fcdd4f0339f6b2b9f7b9958.tar.gz chat-145876681f03f68d2fcdd4f0339f6b2b9f7b9958.tar.bz2 chat-145876681f03f68d2fcdd4f0339f6b2b9f7b9958.zip |
Fix react warnings and part of backstage (#4706)
Diffstat (limited to 'webapp/components/rhs_dropdown.jsx')
-rw-r--r-- | webapp/components/rhs_dropdown.jsx | 9 |
1 files changed, 3 insertions, 6 deletions
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='#' |