diff options
author | bobzel <zzzman@gmail.com> | 2021-02-11 18:11:57 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-11 18:11:57 -0500 |
commit | 7dbd1417fe12b54cdab44fd25adb6c5a9c52bac9 (patch) | |
tree | 4489b776292679406f88f15a41d791c157931a07 /src/client/views/nodes/LinkDocPreview.tsx | |
parent | f8008ec8d21f48591ba54a934022278c63852dba (diff) |
more focus refactoring and some bug fixes - resetting target document when recursively focusing.
Diffstat (limited to 'src/client/views/nodes/LinkDocPreview.tsx')
-rw-r--r-- | src/client/views/nodes/LinkDocPreview.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/LinkDocPreview.tsx b/src/client/views/nodes/LinkDocPreview.tsx index 6155ed493..150a549cb 100644 --- a/src/client/views/nodes/LinkDocPreview.tsx +++ b/src/client/views/nodes/LinkDocPreview.tsx @@ -99,6 +99,7 @@ export class LinkDocPreview extends React.Component<LinkDocPreviewProps> { followLink = (e: React.PointerEvent) => { if (this._linkDoc && this._linkSrc) { + LinkDocPreview.Clear(); LinkManager.FollowLink(this._linkDoc, this._linkSrc, this.props.docProps, false); } else if (this.props.hrefs?.length) { this.props.docProps?.addDocTab(Docs.Create.WebDocument(this.props.hrefs[0], { title: this.props.hrefs[0], _width: 200, _height: 400, useCors: true }), "add:right"); |