diff options
author | VeraLyu <lvroyce0210@gmail.com> | 2017-05-03 23:51:33 +0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-05-03 08:51:33 -0700 |
commit | ad7f8eda7e32d4b1a3578db80bfc2728332f6fbb (patch) | |
tree | 74a4937c3c906a4e3e4387596336e105c014a106 /webapp/components/rhs_root_post.jsx | |
parent | 030b9a0c5c3ee1f17765fff1a85fb30e378db310 (diff) | |
download | chat-ad7f8eda7e32d4b1a3578db80bfc2728332f6fbb.tar.gz chat-ad7f8eda7e32d4b1a3578db80bfc2728332f6fbb.tar.bz2 chat-ad7f8eda7e32d4b1a3578db80bfc2728332f6fbb.zip |
PLT-6211: Close emoji picker right away after react (#6275)
Close emoji picker before adding emoji to recent used.
Diffstat (limited to 'webapp/components/rhs_root_post.jsx')
-rw-r--r-- | webapp/components/rhs_root_post.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 41dd92e91..023387bb4 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -171,9 +171,9 @@ export default class RhsRootPost extends React.Component { } reactEmojiClick(emoji) { + this.setState({showRHSEmojiPicker: false}); const emojiName = emoji.name || emoji.aliases[0]; addReaction(this.props.post.channel_id, this.props.post.id, emojiName); - this.setState({showRHSEmojiPicker: false}); } render() { @@ -245,7 +245,7 @@ export default class RhsRootPost extends React.Component { container={this} onHide={() => this.setState({showRHSEmojiPicker: false})} target={() => ReactDOM.findDOMNode(this.refs.rhs_root_reacticon)} - + animation={false} > <EmojiPicker onEmojiClick={this.reactEmojiClick} |