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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "box-annotations",
3
- "version": "5.2.1-beta.20",
3
+ "version": "5.2.1-beta.21",
4
4
  "description": "Box Annotations",
5
5
  "author": "Box (https://www.box.com/)",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -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