aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-07-14 17:49:07 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-07-18 20:31:52 +0800
commitb05775bfa40f5a36d3da223908c94eec50415214 (patch)
tree216a0e3f3d13b9d94b1bdf3d441fb90fd0a51c9d /ui
parent433fb4d24201d30eb84350bb1bd649f5bb22ad92 (diff)
downloadtangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.tar
tangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.tar.gz
tangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.tar.bz2
tangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.tar.lz
tangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.tar.xz
tangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.tar.zst
tangerine-wallet-browser-b05775bfa40f5a36d3da223908c94eec50415214.zip
Fix click handlers on AccountOptionsMenus
Diffstat (limited to 'ui')
-rw-r--r--ui/responsive/app/components/account-options-menus.js10
1 files changed, 5 insertions, 5 deletions
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, {