Merge pull request #6 from falafeljan/fix/delete-event
call annotation deleted handler
This commit is contained in:
commit
6fb2fb07bf
|
@ -94,6 +94,8 @@ export default class TextAnnotator extends Component {
|
|||
this.clearState();
|
||||
this.selectionHandler.clearSelection();
|
||||
this.highlighter.removeAnnotation(annotation);
|
||||
|
||||
this.props.onAnnotationDeleted(annotation);
|
||||
}
|
||||
|
||||
/** Cancel button on annotation editor **/
|
||||
|
@ -217,4 +219,4 @@ export default class TextAnnotator extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue