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 {