From c2400538b8ca4b68eb8767c8976531202f2ee748 Mon Sep 17 00:00:00 2001
From: laurawilsonri <laura_wilson@brown.edu>
Date: Sat, 23 Feb 2019 21:42:21 -0500
Subject: everything works except text can't be set for textboxes

---
 src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

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

diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index a2fbe96d2..565deb145 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -120,6 +120,7 @@ export class CollectionFreeFormDocumentView extends DocumentView {
             document.removeEventListener("pointerup", this.onPointerUp)
             document.addEventListener("pointerup", this.onPointerUp);
         }
+
     }
 
     onPointerMove = (e: PointerEvent): void => {
@@ -137,11 +138,17 @@ export class CollectionFreeFormDocumentView extends DocumentView {
                 dragData["xOffset"] = e.x - rect.left;
                 dragData["yOffset"] = e.y - rect.top;
                 DragManager.StartDrag(this._mainCont.current, dragData, {
+
                     handlers: {
                         dragComplete: this.dragComplete,
                     },
                     hideSource: true
+
                 })
+                //remove preview cursor from collection
+                if (this.props.ContainingCollectionView != undefined && this.props.ContainingCollectionView instanceof CollectionFreeFormView) {
+                    this.props.ContainingCollectionView.hidePreviewCursor();
+                }
             }
         }
         e.stopPropagation();
-- 
cgit v1.2.3-70-g09d2

