aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-08 19:17:19 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-08 19:17:19 -0400
commit0c76a60386cc0693b1572b5a8cf23b37243e5ab7 (patch)
tree01c9e105e43ca6a992e498d1e29ed3fe89396796 /src/client/util/SelectionManager.ts
parent3925f2ca6f313ba3ced747f05c4ab69a323755a7 (diff)
parenta72fcdd0ebc06a3c851007c6ed89ab13a9a0d835 (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into propsRefactor
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 5e1fa9576..1bb15c86a 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -1,6 +1,7 @@
import { observable, action } from "mobx";
import { DocumentView } from "../views/nodes/DocumentView";
import { Document } from "../../fields/Document";
+import { Main } from "../views/Main";
export namespace SelectionManager {
class Manager {
@@ -47,6 +48,7 @@ export namespace SelectionManager {
manager.DeselectAll()
if (found) manager.SelectDoc(found, false);
+ Main.Instance.SetTextDoc(undefined, undefined);
}
export function SelectedDocuments(): Array<DocumentView> {