aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-15 21:22:39 -0500
committerbobzel <zzzman@gmail.com>2020-12-15 21:22:39 -0500
commitd222ccf613fa7dc1edabc325d226fed4f88d2db0 (patch)
treec5de984615577648d633fa22095524adbc051414 /src/client/views/nodes/DocumentView.tsx
parenta6de26815ba43ae8cbc93cce91f34aecf6542b61 (diff)
fixed some events with groups - they remain active when in "background"
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 5909fceb5..3c140a22a 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -154,8 +154,9 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
}
componentWillUnmount() { this.cleanupHandlers(true); }
- componentDidMount() { this.componentDidUpdate(); }
- componentDidUpdate() {
+ componentDidMount() { this.setupHandlers(); }
+ componentDidUpdate() { this.setupHandlers(); }
+ setupHandlers() {
this.cleanupHandlers(false);
if (this._mainCont.current) {
this._dropDisposer = DragManager.MakeDropTarget(this._mainCont.current, this.drop.bind(this), this.props.Document);