summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-25 12:55:35 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-25 12:55:35 -0400
commiteb16b4fdf907b294b18a56af0636b204624e8016 (patch)
treeb8376d4d6fa560c81884ad0b5a6a24b985d6bf2f /web
parent30bc17a7400ee964b8d7648ad3c782abdae72cc6 (diff)
parent06a7c5e5d72cac9abf07f4204bb94595fa7a9626 (diff)
downloadchat-eb16b4fdf907b294b18a56af0636b204624e8016.tar.gz
chat-eb16b4fdf907b294b18a56af0636b204624e8016.tar.bz2
chat-eb16b4fdf907b294b18a56af0636b204624e8016.zip
Merge pull request #807 from mattermost/plt-248
PLT-248 Fixes RHS not scrolling to show previews when file attached.
Diffstat (limited to 'web')
-rw-r--r--web/react/components/create_comment.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx
index 99f553c0c..5097b3aa5 100644
--- a/web/react/components/create_comment.jsx
+++ b/web/react/components/create_comment.jsx
@@ -43,6 +43,12 @@ export default class CreateComment extends React.Component {
submitting: false
};
}
+ componentDidUpdate(prevProps, prevState) {
+ if (prevState.uploadsInProgress < this.state.uploadsInProgress) {
+ $('.post-right__scroll').scrollTop($('.post-right__scroll')[0].scrollHeight);
+ $('.post-right__scroll').perfectScrollbar('update');
+ }
+ }
handleSubmit(e) {
e.preventDefault();