fix triple click on 'reply'

This commit is contained in:
igoradamenko
2018-05-02 00:14:23 +03:00
parent e19350ab8f
commit 0ef77f63f6
+5 -1
View File
@@ -65,7 +65,11 @@ export default class Comment extends Component {
this.setState({ isInputVisible: !isInputVisible });
if (this.props.onReplyClick) {
this.props.onReplyClick(() => this.setState({ isInputVisible: false }));
if (!isInputVisible) {
this.props.onReplyClick(() => this.setState({ isInputVisible: false }));
} else {
this.props.onReplyClick(null);
}
}
}