mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 12:16:27 +08:00
ClickOutside should only toggle action when open
This commit is contained in:
@@ -133,7 +133,9 @@ export default class FlagButton extends Component {
|
||||
}
|
||||
|
||||
handleClickOutside = () => {
|
||||
this.closeMenu();
|
||||
if (this.state.showMenu) {
|
||||
this.closeMenu();
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
|
||||
Reference in New Issue
Block a user