diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-12-17 20:55:38 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-12-17 20:55:38 -0500 |
commit | 16c84a8042fc3e9d7af3d74fce2758bf6862a5a2 (patch) | |
tree | 983ca7313c91a1c627ba6d76f931aba9d397be46 /src/client/views/nodes/DocumentBox.tsx | |
parent | 96ada41d4c3c411be63bd656da65bba7894a4224 (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.tsx | 3 |
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" }); |