diff options
author | bobzel <zzzman@gmail.com> | 2021-07-29 18:49:02 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-07-29 18:49:02 -0400 |
commit | 3d4716badd33afe0776da7fdd907a057ac88d698 (patch) | |
tree | 43f47b013f6a298d6703d4ebe67f85c55bc18715 /src/client/util/SelectionManager.ts | |
parent | e950b1828e2331f840b3b25dc9f8cb332ffe0105 (diff) |
fixed navigating to a PDF anchor from sidebar.
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index 00f0894c7..7aeb19391 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -4,6 +4,7 @@ import { Doc, Opt } from "../../fields/Doc"; import { CollectionSchemaView } from "../views/collections/collectionSchema/CollectionSchemaView"; import { CollectionViewType } from "../views/collections/CollectionView"; import { DocumentView } from "../views/nodes/DocumentView"; +import { DocumentType } from "../documents/DocumentTypes"; export namespace SelectionManager { @@ -22,7 +23,7 @@ export namespace SelectionManager { @action SelectView(docView: DocumentView, ctrlPressed: boolean): void { // if doc is not in SelectedDocuments, add it - if (!manager.SelectedViews.get(docView)) { + if (!manager.SelectedViews.get(docView) && docView.props.Document.type !== DocumentType.HTMLANCHOR) { if (!ctrlPressed) { this.DeselectAll(); } |