Removes ability to auto-scroll to new messages in ie10/11 to fix rendering issue

Этот коммит содержится в:
Reed Garmsen
2015-08-30 09:58:51 -07:00
родитель bdf53884f5
Коммит d295e94c3a

Просмотреть файл

@@ -511,9 +511,15 @@ export default class PostList extends React.Component {
if (post.user_id !== userId && post.create_at > this.state.lastViewed && !renderedLastViewed) { if (post.user_id !== userId && post.create_at > this.state.lastViewed && !renderedLastViewed) {
renderedLastViewed = true; renderedLastViewed = true;
// Temporary fix to solve ie10/11 rendering issue
let newSeparatorId = '';
if (!utils.isBrowserIE()) {
newSeparatorId = 'new_message';
}
postCtls.push( postCtls.push(
<div <div
id='new_message' id={newSeparatorId}
key='unviewed' key='unviewed'
className='new-separator' className='new-separator'
> >