aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-12-17 20:55:38 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-12-17 20:55:38 -0500
commit16c84a8042fc3e9d7af3d74fce2758bf6862a5a2 (patch)
tree983ca7313c91a1c627ba6d76f931aba9d397be46 /src/client/views/nodes/DocumentBox.tsx
parent96ada41d4c3c411be63bd656da65bba7894a4224 (diff)
warnings and fix to doc decorations close button to deselect first
Diffstat (limited to 'src/client/views/nodes/DocumentBox.tsx')
-rw-r--r--src/client/views/nodes/DocumentBox.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentBox.tsx b/src/client/views/nodes/DocumentBox.tsx
index 6be0289d7..94755afec 100644
--- a/src/client/views/nodes/DocumentBox.tsx
+++ b/src/client/views/nodes/DocumentBox.tsx
@@ -33,6 +33,9 @@ export class DocumentBox extends DocComponent<FieldViewProps, DocBoxSchema>(DocB
}
});
}
+ componentWillUnmount() {
+ this._prevSelectionDisposer && this._prevSelectionDisposer();
+ }
specificContextMenu = (e: React.MouseEvent): void => {
const funcs: ContextMenuProps[] = [];
funcs.push({ description: (this.isSelectionLocked() ? "Show" : "Lock") + " Selection", event: () => this.toggleLockSelection, icon: "expand-arrows-alt" });