1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix click handlers on AccountOptionsMenus

This commit is contained in:
sdtsui 2017-07-14 02:49:07 -07:00
parent 433fb4d242
commit b05775bfa4

View File

@ -48,17 +48,17 @@ class AccountOptionsMenus extends Component {
'i.fa.fa-ellipsis-h', 'i.fa.fa-ellipsis-h',
{ {
style: { 'marginLeft': '10px'}, style: { 'marginLeft': '10px'},
onClick: () => { this.setState({ switchingMenuActive: !this.state.switchingMenuActive }) } onClick: (event) => {
event.stopPropagation();
this.setState({ overflowMenuActive: !this.state.overflowMenuActive })
}
}, },
[ [
h( h(
Dropdown, Dropdown,
{ {
isOpen: this.state.overflowMenuActive, isOpen: this.state.overflowMenuActive,
onClickOutside: (event) => { onClickOutside: () => { this.setState({ overflowMenuActive: false})}
event.stopPropagation();
this.setState({ overflowMenuActive: false})
}
}, },
[ [
h(DropdownMenuItem, { h(DropdownMenuItem, {