From 5d6738cce7528e57a5f2375c79e3edf3cfa3956a Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Thu, 3 May 2018 02:56:28 +0300 Subject: [PATCH] hide reply form after sending --- web/app/components/comment/comment.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index 240787d4..83608ef0 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -169,6 +169,10 @@ export default class Comment extends Component { onReply(...rest) { this.props.onReply(...rest); + + this.setState({ + isInputVisible: false, + }); } render(props, { guest, userBlocked, pinned, score, scoreIncreased, scoreDecreased, deleted, isInputVisible }) {