summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_body.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-09-21 11:30:08 -0400
committerJoramWilander <jwawilander@gmail.com>2015-09-21 11:30:08 -0400
commit3e868a6042123dae02814d70aa05533d61e9283e (patch)
tree3928c4e9323ba452ff45906493680818d4c67c4d /web/react/components/post_body.jsx
parenta35fa9c974833c34fe972ee44ba80eb828e7aaf0 (diff)
downloadchat-3e868a6042123dae02814d70aa05533d61e9283e.tar.gz
chat-3e868a6042123dae02814d70aa05533d61e9283e.tar.bz2
chat-3e868a6042123dae02814d70aa05533d61e9283e.zip
Fix first channel load scrolling issue on Windows and iOS and add emoji to RHS.
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r--web/react/components/post_body.jsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index 8020714cd..e0682e997 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -35,9 +35,7 @@ export default class PostBody extends React.Component {
parseEmojis() {
twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE});
- this.getAllChildNodes(React.findDOMNode(this)).forEach((current) => {
- global.window.emojify.run(current);
- });
+ global.window.emojify.run(React.findDOMNode(this.refs.message_span));
}
componentDidMount() {
@@ -161,6 +159,7 @@ export default class PostBody extends React.Component {
>
{loading}
<span
+ ref='message_span'
onClick={TextFormatting.handleClick}
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(this.state.message)}}
/>