From b05775bfa40f5a36d3da223908c94eec50415214 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Fri, 14 Jul 2017 02:49:07 -0700 Subject: Fix click handlers on AccountOptionsMenus --- ui/responsive/app/components/account-options-menus.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui/responsive') diff --git a/ui/responsive/app/components/account-options-menus.js b/ui/responsive/app/components/account-options-menus.js index acaf53c9e..ce2699b38 100644 --- a/ui/responsive/app/components/account-options-menus.js +++ b/ui/responsive/app/components/account-options-menus.js @@ -48,17 +48,17 @@ class AccountOptionsMenus extends Component { 'i.fa.fa-ellipsis-h', { style: { 'marginLeft': '10px'}, - onClick: () => { this.setState({ switchingMenuActive: !this.state.switchingMenuActive }) } + onClick: (event) => { + event.stopPropagation(); + this.setState({ overflowMenuActive: !this.state.overflowMenuActive }) + } }, [ h( Dropdown, { isOpen: this.state.overflowMenuActive, - onClickOutside: (event) => { - event.stopPropagation(); - this.setState({ overflowMenuActive: false}) - } + onClickOutside: () => { this.setState({ overflowMenuActive: false})} }, [ h(DropdownMenuItem, { -- cgit