aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-02-23 21:42:21 -0500
committerlaurawilsonri <laura_wilson@brown.edu>2019-02-23 21:42:21 -0500
commitc2400538b8ca4b68eb8767c8976531202f2ee748 (patch)
treecd7034e33e209d253b46d9763b03057ea4c65dad /src/client/util/SelectionManager.ts
parent9cf013c5b64af47d5199ef8168a5af6c29461ed9 (diff)
everything works except text can't be set for textboxes
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 0759ae110..658bf8f93 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -1,5 +1,6 @@
import { CollectionFreeFormDocumentView } from "../views/nodes/CollectionFreeFormDocumentView";
import { observable, action } from "mobx";
+import { CollectionFreeFormView } from "../views/collections/CollectionFreeFormView";
export namespace SelectionManager {
class Manager {
@@ -8,6 +9,11 @@ export namespace SelectionManager {
@action
SelectDoc(doc: CollectionFreeFormDocumentView, ctrlPressed: boolean): void {
+
+ //remove preview cursor from collection
+ if (doc.props.ContainingCollectionView != undefined && doc.props.ContainingCollectionView instanceof CollectionFreeFormView) {
+ doc.props.ContainingCollectionView.hidePreviewCursor();
+ }
// if doc is not in SelectedDocuments, add it
if (!ctrlPressed) {
manager.SelectedDocuments = [];