1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 22:33:17 +00:00

fix-scroll-bug

This commit is contained in:
Michael18811380328
2018-12-07 16:11:28 +08:00
parent 7a6a989e46
commit c8697f8342

View File

@@ -290,7 +290,7 @@ class CommentItem extends React.Component {
</Dropdown> </Dropdown>
} }
</div> </div>
{ this.props.item.newIndex ? { (this.props.item.newIndex >= -1 && this.props.item.oldIndex >= -1)?
<div className="seafile-comment-content" onClick={this.scrollToQuote} <div className="seafile-comment-content" onClick={this.scrollToQuote}
dangerouslySetInnerHTML={{ __html: this.state.html }}></div> dangerouslySetInnerHTML={{ __html: this.state.html }}></div>
: :