diff options
author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2021-12-02 14:41:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 14:41:08 -0500 |
commit | 2da3a0355131c02123fddff371c6c66eff78c20a (patch) | |
tree | 63769db679a9630df34c3323be8419aac2af377b /src/client/util/SelectionManager.ts | |
parent | c415a692ed51563ea937901860d2532aede93d46 (diff) | |
parent | d94a9f8500e832a853ffb344acac4d5ec4b5e5d3 (diff) |
Merge pull request #49 from brown-dash/lauren-linking
Directed selectable links with editing ability in properties panel
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index 2cba2c1f2..6674f684d 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -4,6 +4,7 @@ import { Doc, Opt } from "../../fields/Doc"; import { DocumentType } from "../documents/DocumentTypes"; import { CollectionViewType } from "../views/collections/CollectionView"; import { DocumentView } from "../views/nodes/DocumentView"; +import { CurrentUserUtils } from "./CurrentUserUtils"; export namespace SelectionManager { @@ -43,6 +44,9 @@ export namespace SelectionManager { } @action DeselectAll(): void { + if (CurrentUserUtils.propertiesWidth > 0) { + CurrentUserUtils.propertiesWidth = 0; + } manager.SelectedSchemaDocument = undefined; Array.from(manager.SelectedViews.keys()).map(dv => dv.props.whenChildContentsActiveChanged(false)); manager.SelectedViews.clear(); |