aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-24 13:16:23 -0400
committerbobzel <zzzman@gmail.com>2020-09-24 13:16:23 -0400
commitee511f1e0b5ce7de221d3c6ed6251c1636db54fc (patch)
treeba6d231c5d4fa6af03d5cc778d09133c5a24f157 /src/client/views/collections/CollectionSubView.tsx
parent9aaf620dd57b144c36ac9d5cd3c32b3c6ecf33db (diff)
changed dragging pdf link note to not create a note when dropped on annotatable item (image, video, pdf)
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index d9c4d274a..a78923312 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -243,7 +243,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
e.stopPropagation();
return added;
}
- else if (de.complete.annoDragData) {
+ else if (de.complete.annoDragData && (!this.props.isAnnotationOverlay || de.complete.annoDragData.dragDocument === this.props.Document)) {
e.stopPropagation();
return this.addDocument(de.complete.annoDragData.dropDocument);
}