Skip to content
Snippets Groups Projects
Commit 3be5ad10 authored by Alexandros Georgantas's avatar Alexandros Georgantas Committed by Yannis Barlas
Browse files

Remove rerender from handleDocumentChange as it is handle in document

parent 14b14f71
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,6 @@ class TrackChangeComponent extends AnnotationComponent { ...@@ -107,7 +107,6 @@ class TrackChangeComponent extends AnnotationComponent {
onTrackChangesUpdated (change) { onTrackChangesUpdated (change) {
const trackChangesProvider = this.getProvider() const trackChangesProvider = this.getProvider()
trackChangesProvider.handleDocumentChange(change) trackChangesProvider.handleDocumentChange(change)
this.rerender()
} }
} }
......
...@@ -534,7 +534,7 @@ class TrackChangesProvider extends TOCProvider { ...@@ -534,7 +534,7 @@ class TrackChangesProvider extends TOCProvider {
annotationHelpers.truncateAnnotation(doc, annotation, selection) annotationHelpers.truncateAnnotation(doc, annotation, selection)
} }
surface.transaction(transformation, info) surface.editorSession.transaction(transformation, info)
} }
/* /*
...@@ -862,7 +862,6 @@ class TrackChangesProvider extends TOCProvider { ...@@ -862,7 +862,6 @@ class TrackChangesProvider extends TOCProvider {
getSelection () { getSelection () {
const surface = this.getSurface() const surface = this.getSurface()
// return surface.getSelection()
return surface.domSelection.getSelection() return surface.domSelection.getSelection()
} }
......
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