diff options
author | bobzel <zzzman@gmail.com> | 2020-12-15 21:22:39 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-15 21:22:39 -0500 |
commit | d222ccf613fa7dc1edabc325d226fed4f88d2db0 (patch) | |
tree | c5de984615577648d633fa22095524adbc051414 /src/client/views/nodes/DocumentView.tsx | |
parent | a6de26815ba43ae8cbc93cce91f34aecf6542b61 (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.tsx | 5 |
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); |