diff options
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx | 2 | ||||
-rw-r--r-- | webapp/components/post_view/post_body_additional_content.jsx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx b/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx index 04738fdcc..729084637 100644 --- a/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx +++ b/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx @@ -107,7 +107,7 @@ export default class PostAttachmentOpenGraph extends React.PureComponent { } componentDidUpdate() { - postListScrollChange(); + setTimeout(postListScrollChange, 0); } fetchData(url) { diff --git a/webapp/components/post_view/post_body_additional_content.jsx b/webapp/components/post_view/post_body_additional_content.jsx index bf01374fe..9310d951e 100644 --- a/webapp/components/post_view/post_body_additional_content.jsx +++ b/webapp/components/post_view/post_body_additional_content.jsx @@ -134,6 +134,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent { channelId={this.props.post.channel_id} link={link} show={this.state.embedVisible} + onLinkLoaded={this.handleLinkLoaded} /> ); } |