From 0bf3fcfbff825a94180a7785e2c033bb0b99ebb0 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Wed, 7 Jul 2021 18:49:16 +0200 Subject: [PATCH] Bugfix --- src/editor/Editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 2385c24..9be170e 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -261,7 +261,7 @@ export default class Editor extends Component { // selected for editing) if (currentAnnotation.bodies.length === 0 && !this.props.allowEmpty) { if (currentAnnotation.isSelection) - onCancel(); + this.onCancel(); else this.props.onAnnotationDeleted(this.props.annotation); } else {