From d222ccf613fa7dc1edabc325d226fed4f88d2db0 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 15 Dec 2020 21:22:39 -0500
Subject: fixed some events with groups - they remain active when in
 "background"

---
 src/client/views/nodes/DocumentView.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/client/views/nodes/DocumentView.tsx')

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);
-- 
cgit v1.2.3-70-g09d2

