diff options
| author | bob <bcz@cs.brown.edu> | 2019-03-11 15:27:20 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-03-11 15:27:20 -0400 |
| commit | 6e66622439eff11e69c8fa71c477ce0f8f5cc104 (patch) | |
| tree | 7243a0e2adc606993745c06a2eabbe7f4f6d1a24 /src/client/views/collections/CollectionViewBase.tsx | |
| parent | e0d33c6092e5fb62343ef38d8734fa342e6dff84 (diff) | |
cleaned up drag/drop interactions to be more consistent and complete.
Diffstat (limited to 'src/client/views/collections/CollectionViewBase.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionViewBase.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionViewBase.tsx b/src/client/views/collections/CollectionViewBase.tsx index 59fa61800..b126b40a9 100644 --- a/src/client/views/collections/CollectionViewBase.tsx +++ b/src/client/views/collections/CollectionViewBase.tsx @@ -47,7 +47,7 @@ export class CollectionViewBase extends React.Component<SubCollectionViewProps> protected drop(e: Event, de: DragManager.DropEvent) { const docView: DocumentView = de.data["documentView"]; const doc: Document = de.data["document"]; - if (docView && docView.props.ContainingCollectionView && docView.props.ContainingCollectionView !== this.props.CollectionView) { + if (docView && (!docView.props.ContainingCollectionView || docView.props.ContainingCollectionView !== this.props.CollectionView)) { if (docView.props.RemoveDocument) { docView.props.RemoveDocument(docView.props.Document); } |
