aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/linking/LinkMenuItem.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-04-14 11:12:49 -0400
committerbobzel <zzzman@gmail.com>2023-04-14 11:12:49 -0400
commit650cc00d18c97f89aef77f50703aa9b525dd0368 (patch)
tree1c0efe901e15bb83fdba045f8f179676b2185dbe /src/client/views/linking/LinkMenuItem.tsx
parent5cd64622f14ede408d3baca4a10d155b60392e46 (diff)
got rid of CollectionView prop. fixed DocFocusOrOpen to toggle targets and zoom correctly.
Diffstat (limited to 'src/client/views/linking/LinkMenuItem.tsx')
-rw-r--r--src/client/views/linking/LinkMenuItem.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/linking/LinkMenuItem.tsx b/src/client/views/linking/LinkMenuItem.tsx
index d703c9595..19d6c2ae2 100644
--- a/src/client/views/linking/LinkMenuItem.tsx
+++ b/src/client/views/linking/LinkMenuItem.tsx
@@ -45,7 +45,7 @@ export async function StartLinkTargetsDrag(dragEle: HTMLElement, docView: Docume
const dragData = new DragManager.DocumentDragData(moddrag.length ? moddrag : draggedDocs);
dragData.canEmbed = true;
- dragData.moveDocument = (docView.props.docViewPath().lastElement()?.ComponentView as any)?.props.CollectionView?.moveDocument; // this is equal to docView.props.moveDocument, but moveDocument is not a defined prop of a DocumentView .. but maybe it should be?
+ dragData.dropAction = 'alias';
DragManager.StartDocumentDrag([dragEle], dragData, downX, downY, undefined);
}