fix: call annotation deleted handler

This commit is contained in:
Jan Kaßel 2020-04-25 13:45:52 +02:00
parent 59b7517414
commit 297d7a42d3
1 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,8 @@ export default class TextAnnotator extends Component {
this.clearState(); this.clearState();
this.selectionHandler.clearSelection(); this.selectionHandler.clearSelection();
this.highlighter.removeAnnotation(annotation); this.highlighter.removeAnnotation(annotation);
this.props.onAnnotationDeleted(annotation);
} }
/** Cancel button on annotation editor **/ /** Cancel button on annotation editor **/
@ -217,4 +219,4 @@ export default class TextAnnotator extends Component {
); );
} }
} }