summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-30 09:58:51 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-30 10:26:15 -0700
commitd295e94c3a43b4fad4b00788597631006388e0e2 (patch)
tree9eb784aa51fc53f47d3956fcd0919b980879060d /web
parentbdf53884f567a46216fc1b8f3462fd15ab53ae92 (diff)
downloadchat-d295e94c3a43b4fad4b00788597631006388e0e2.tar.gz
chat-d295e94c3a43b4fad4b00788597631006388e0e2.tar.bz2
chat-d295e94c3a43b4fad4b00788597631006388e0e2.zip
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 865a22dbd..280753cd9 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -511,9 +511,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'
>