From dc884983e625fb7a9309361de26b7dcbc0fd736a Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Fri, 4 Aug 2017 05:14:10 +0800 Subject: close post control button after reacting to a post (#7110) --- webapp/components/post_view/post_info/post_info.jsx | 1 + webapp/components/rhs_comment.jsx | 1 + webapp/components/rhs_root_post.jsx | 1 + 3 files changed, 3 insertions(+) diff --git a/webapp/components/post_view/post_info/post_info.jsx b/webapp/components/post_view/post_info/post_info.jsx index 71f73b631..5f3701761 100644 --- a/webapp/components/post_view/post_info/post_info.jsx +++ b/webapp/components/post_view/post_info/post_info.jsx @@ -125,6 +125,7 @@ export default class PostInfo extends React.PureComponent { const emojiName = emoji.name || emoji.aliases[0]; this.props.actions.addReaction(this.props.post.id, emojiName); emitEmojiPosted(emojiName); + this.props.handleDropdownOpened(false); } getDotMenu = () => { diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 25ea4f9ca..31afa7b6d 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -166,6 +166,7 @@ export default class RhsComment extends React.Component { this.setState({showEmojiPicker: false}); const emojiName = emoji.name || emoji.aliases[0]; addReaction(this.props.post.channel_id, this.props.post.id, emojiName); + this.handleDropdownOpened(false); } getClassName = (post, isSystemMessage) => { diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index af0c8c0d5..620a87e94 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -159,6 +159,7 @@ export default class RhsRootPost extends React.Component { this.setState({showEmojiPicker: false}); const emojiName = emoji.name || emoji.aliases[0]; addReaction(this.props.post.channel_id, this.props.post.id, emojiName); + this.handleDropdownOpened(false); } getClassName = (post, isSystemMessage) => { -- cgit v1.2.3-1-g7c22