aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-18 13:03:28 -0400
committerbob <bcz@cs.brown.edu>2019-06-18 13:03:28 -0400
commit3a25bad918c72f5d6de9a720de9e0d316c00f2fe (patch)
treebe5cad10de4f5243f387874fc851dcb4c23b1067 /src/client/views/collections/CollectionSubView.tsx
parentf4fcf306e2579b7479610899a01c06fb157d47de (diff)
fixed issues with expanding text boxes that have a dynamic title
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 783f40d0a..e55cd9e37 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -36,9 +36,7 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) {
class CollectionSubView extends DocComponent<SubCollectionViewProps, T>(schemaCtor) {
private dropDisposer?: DragManager.DragDropDisposer;
protected createDropTarget = (ele: HTMLDivElement) => {
- if (this.dropDisposer) {
- this.dropDisposer();
- }
+ this.dropDisposer && this.dropDisposer();
if (ele) {
this.dropDisposer = DragManager.MakeDropTarget(ele, { handlers: { drop: this.drop.bind(this) } });
}
@@ -96,10 +94,6 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) {
return added;
}
else if (de.data instanceof DragManager.AnnotationDragData) {
- console.log("dropped!");
- console.log(de.data);
- // de.data.dropDocument.x = de.x;
- // de.data.dropDocument.y = de.y;
return this.props.addDocument(de.data.dropDocument);
}
return false;