summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-08-30 20:58:56 -0700
committerCorey Hulen <corey@hulen.com>2015-08-30 20:58:56 -0700
commitd7164fdd4712817ac40f6c9d6aea775667d88c12 (patch)
treef706eb1d12e1b79d4eb5da1bb0e9a113909fe4d7 /web
parent07bdbf21f5dd14ecab85f1cfdced701a5e981d2f (diff)
parentd295e94c3a43b4fad4b00788597631006388e0e2 (diff)
downloadchat-d7164fdd4712817ac40f6c9d6aea775667d88c12.tar.gz
chat-d7164fdd4712817ac40f6c9d6aea775667d88c12.tar.bz2
chat-d7164fdd4712817ac40f6c9d6aea775667d88c12.zip
Merge pull request #521 from rgarmsen2295/mm-2044
MM-2044 Removes ability to auto-scroll to new messages in ie10/11 to fix rendering issue
Diffstat (limited to 'web')
-rw-r--r--web/react/components/post_list.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index f8cfdb2ab..fa8b5e918 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -534,9 +534,15 @@ export default class PostList extends React.Component {
if (post.user_id !== userId && post.create_at > this.state.lastViewed && !renderedLastViewed) {
renderedLastViewed = true;
+
+ // Temporary fix to solve ie10/11 rendering issue
+ let newSeparatorId = '';
+ if (!utils.isBrowserIE()) {
+ newSeparatorId = 'new_message';
+ }
postCtls.push(
<div
- id='new_message'
+ id={newSeparatorId}
key='unviewed'
className='new-separator'
>