From 87124df2d90c905f5b10a6cef58d2db44cb6aed6 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Tue, 14 Jan 2020 19:46:50 -0500 Subject: initial propagation of collectionmulticolumnview --- src/client/views/CollectionMulticolumnView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/views/CollectionMulticolumnView.tsx') diff --git a/src/client/views/CollectionMulticolumnView.tsx b/src/client/views/CollectionMulticolumnView.tsx index 94e86c048..da5b18155 100644 --- a/src/client/views/CollectionMulticolumnView.tsx +++ b/src/client/views/CollectionMulticolumnView.tsx @@ -12,6 +12,7 @@ const MulticolumnDocument = makeInterface(documentSchema); @observer export default class CollectionMulticolumnView extends CollectionSubView(MulticolumnDocument) { + private _dropDisposer?: DragManager.DragDropDisposer; constructor(props: Readonly) { super(props); @@ -19,8 +20,7 @@ export default class CollectionMulticolumnView extends CollectionSubView(Multico Document.multicolumnData = new Doc(); } - private _dropDisposer?: DragManager.DragDropDisposer; - protected createDropTarget = (ele: HTMLDivElement) => { //used for stacking and masonry view + protected createDropTarget = (ele: HTMLDivElement) => { this._dropDisposer && this._dropDisposer(); if (ele) { this._dropDisposer = DragManager.MakeDropTarget(ele, this.drop.bind(this)); -- cgit v1.2.3-70-g09d2