diff options
author | geireann <geireann.lindfield@gmail.com> | 2021-08-05 17:17:41 -0400 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2021-08-05 17:17:41 -0400 |
commit | 04ae1c712422036b3986675486ea9a1eddb25e36 (patch) | |
tree | 2cba3d0cf65a7f18d959620a3bd1d9a7e455bff5 /src/client/util/SelectionManager.ts | |
parent | 2ec093982c06965086326df73d365e1b54f6a2a2 (diff) | |
parent | b9d72dd3ed3b800ef9bd1f6695ac37e14d21f675 (diff) |
Merge branch 'master' into search-david
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index ca5ef75d2..dbcc49f3d 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -1,9 +1,10 @@ import { action, observable, ObservableMap } from "mobx"; import { computedFn } from "mobx-utils"; import { Doc, Opt } from "../../fields/Doc"; -import { CollectionSchemaView } from "../views/collections/CollectionSchemaView"; +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.MARKER) { if (!ctrlPressed) { this.DeselectAll(); } |