Skip to content

Commit

Permalink
Fix #705 (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebifrier authored May 6, 2020
1 parent 02e97b9 commit 3bee09b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/sidebars/CommentBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ export default class CommentBox extends Component {

if (mode === 'edit') {
this.element.scrollTop = 0
if (treePositionChanged) this.textareaElement.scrollTop = 0
if (treePositionChanged) {
this.textareaElement.scrollTop = 0
this.setState({title, comment})
}

return
}
Expand Down

0 comments on commit 3bee09b

Please sign in to comment.