From 16c84a8042fc3e9d7af3d74fce2758bf6862a5a2 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Tue, 17 Dec 2019 20:55:38 -0500 Subject: warnings and fix to doc decorations close button to deselect first --- src/client/views/nodes/DocumentBox.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/views/nodes') 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(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" }); -- cgit v1.2.3-70-g09d2