mirror of
https://github.com/wassname/talk.git
synced 2026-07-21 12:51:03 +08:00
ClickOutside should only toggle action when open
This commit is contained in:
@@ -19,7 +19,9 @@ export default class Toggleable extends React.Component {
|
||||
}
|
||||
|
||||
close = () => {
|
||||
this.setState({isOpen: false});
|
||||
if (this.state.isOpen) {
|
||||
this.setState({isOpen: false});
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user