diff options
author | bobzel <zzzman@gmail.com> | 2023-08-29 01:28:45 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-08-29 01:28:45 -0400 |
commit | ac9bc713d574cc3314744bf6b18a758d424d2fe8 (patch) | |
tree | c480c9cc7d436b3e91ec06c953c7fda2673b0770 | |
parent | b345c9768a2e46e7fc90fa0b8ff2d0924c433428 (diff) |
can't drag link button onto self
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 28d9bb69b..8a0706c30 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -629,7 +629,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps const linkdrag = de.complete.annoDragData ?? de.complete.linkDragData; if (linkdrag) { linkdrag.linkSourceDoc = linkdrag.linkSourceGetAnchor(); - if (linkdrag.linkSourceDoc) { + if (linkdrag.linkSourceDoc && linkdrag.linkSourceDoc !== this.rootDoc) { if (de.complete.annoDragData && !de.complete.annoDragData.dropDocument) { de.complete.annoDragData.dropDocument = de.complete.annoDragData.dropDocCreator(undefined); } |