Skip to content
Snippets Groups Projects
Commit 4828d838 authored by chris's avatar chris
Browse files

fix: toggle track change view now works correctly

parent 5abb0831
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,6 @@ class Editor extends ProseEditor {
updateTrackChangeView () {
this.extendState({ trackChangesView: !this.state.trackChangesView })
console.log('in editor', this.state.trackChangesView)
}
willUpdateState () {}
......
......@@ -13,8 +13,8 @@ class TrackChangeControlViewCommand extends Command {
execute (params, context) {
const surface = context.surfaceManager.getSurface('body')
surface.send('trackChangesViewUpdate')
surface.selectAll()
surface.selectFirst()
surface.rerender()
return true
}
}
......
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