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:
parent
433fb4d242
commit
b05775bfa4
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user