diff options
author | bobzel <zzzman@gmail.com> | 2020-09-03 15:59:51 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-03 15:59:51 -0400 |
commit | 3ba4d0b56b5a0428d1b363ee05b419b954a2b071 (patch) | |
tree | deb25b5e277a6e91d7ec982fb71f2211c7ff6911 /src/client/views/nodes/WebBox.tsx | |
parent | 91a30e512b93937409c2fb3299dc52fc2a87c22a (diff) |
fixed linking pdf selections to rtf selections.
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index f9e6227d7..c5d7c3c9f 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -499,8 +499,8 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps, WebDocum if (annotationDoc) { DragManager.StartPdfAnnoDrag([ele], new DragManager.PdfAnnoDragData(this.props.Document, annotationDoc, targetDoc), e.pageX, e.pageY, { dragComplete: e => { - if (!e.aborted && e.annoDragData && !e.annoDragData.linkedToDoc) { - DocUtils.MakeLink({ doc: annotationDoc }, { doc: e.annoDragData.dropDocument }, "Annotation"); + if (!e.aborted && e.annoDragData && !e.annoDragData.linkDocument) { + e.annoDragData.linkDocument = DocUtils.MakeLink({ doc: annotationDoc }, { doc: e.annoDragData.dropDocument }, "Annotation"); annotationDoc.isLinkButton = true; } } |