summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-04 05:14:10 +0800
committerHarrison Healey <harrisonmhealey@gmail.com>2017-08-03 17:14:10 -0400
commitdc884983e625fb7a9309361de26b7dcbc0fd736a (patch)
tree198d513df12b50d6b4c5b4be3f4a3a871792ad14 /webapp
parent2dbe30cba37bc771d5ac8038104d3364c889dfb0 (diff)
downloadchat-dc884983e625fb7a9309361de26b7dcbc0fd736a.tar.gz
chat-dc884983e625fb7a9309361de26b7dcbc0fd736a.tar.bz2
chat-dc884983e625fb7a9309361de26b7dcbc0fd736a.zip
close post control button after reacting to a post (#7110)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/post_view/post_info/post_info.jsx1
-rw-r--r--webapp/components/rhs_comment.jsx1
-rw-r--r--webapp/components/rhs_root_post.jsx1
3 files changed, 3 insertions, 0 deletions
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) => {