Fix click handlers on AccountOptionsMenus

This commit is contained in:
sdtsui 2017-07-14 02:49:07 -07:00
parent 433fb4d242
commit b05775bfa4
1 changed files with 5 additions and 5 deletions

View File

@ -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, {