Skip to content
Snippets Groups Projects
Commit 99976dfa authored by john's avatar john
Browse files

attempt to fix bug with comments losing correct position when track change view mode is toggled

parent d085173d
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ class Editor extends ProseEditor {
updateTrackChangeView () {
this.extendState({ trackChangesView: !this.state.trackChangesView })
// this.getChildContext().commentsProvider.update()
}
willUpdateState () {}
......
......@@ -19,6 +19,10 @@ class CommentsProvider extends TocProvider {
return entries
}
update () {
this.emit('comments:updated')
}
reComputeEntries () {
this.entries = this.computeEntries()
this.emit('comments:updated')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment