box-annotations 5.2.1-beta.20 → 5.2.1-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,7 +33,13 @@ export default class RegionCreation extends React.PureComponent<Props, State> {
|
|
|
33
33
|
state: State = {};
|
|
34
34
|
|
|
35
35
|
handleAbort = (): void => {
|
|
36
|
-
const { resetCreator } = this.props;
|
|
36
|
+
const { resetCreator, staged } = this.props;
|
|
37
|
+
|
|
38
|
+
// Click-away (a click too small to start a new region) must not discard an in-progress comment/annotation
|
|
39
|
+
if (staged) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
resetCreator();
|
|
38
44
|
};
|
|
39
45
|
|