diff options
author | bobzel <zzzman@gmail.com> | 2022-11-02 12:54:18 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-11-02 12:54:18 -0400 |
commit | b171b939743de6126f3fb5ca1e2d34bba7cbe428 (patch) | |
tree | ab8f5beb258f8d364fc437cb587f6695ed24db27 /src/client/views/nodes/DocumentView.tsx | |
parent | 1a8024dce302acc1637cd1f7d74b0238c5979c15 (diff) |
fix sidebar so active filters add proper metadata to newly created documents
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 595fc3bca..a35400e72 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -619,6 +619,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps }, 350); } else clickFunc(); } else if (this.allLinks && this.Document.type !== DocumentType.LINK && !isScriptBox() && this.Document.isLinkButton && !e.shiftKey && !e.ctrlKey) { + SelectionManager.DeselectAll(); this.allLinks.length && LinkFollower.FollowLink(undefined, this.props.Document, this.props, e.altKey); } else { if ((this.layoutDoc.onDragStart || this.props.Document.rootDocument) && !(e.ctrlKey || e.button > 0)) { |