From 297d7a42d37e20e09e6eec42b530f08e3f6c8b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ka=C3=9Fel?= Date: Sat, 25 Apr 2020 13:45:52 +0200 Subject: [PATCH] fix: call annotation deleted handler --- src/TextAnnotator.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TextAnnotator.jsx b/src/TextAnnotator.jsx index b5c2b77..a5affb5 100644 --- a/src/TextAnnotator.jsx +++ b/src/TextAnnotator.jsx @@ -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 { ); } -} \ No newline at end of file +}