diff options
author | bobzel <zzzman@gmail.com> | 2024-03-01 08:23:06 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-01 08:23:06 -0500 |
commit | 25474b83f908732b2618cb7110f1e410030f9280 (patch) | |
tree | a942453765eb876ffaa3899d623fa77e13a196b4 /src/client/util/SelectionManager.ts | |
parent | 4e837a73f5fae06368416f99c047d78f6b94565b (diff) | |
parent | 3179048be75fb7662fc472249798b2d103dc5544 (diff) |
Merge branch 'master' into info-ui-observable
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r-- | src/client/util/SelectionManager.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index f2a327445..36b926053 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -38,6 +38,7 @@ export class SelectionManager { this.Instance.SelectedViews.push(docView); docView.IsSelected = true; docView._props.whenChildContentsActiveChanged(true); + docView.ComponentView?.select?.(false, false); } }); @@ -51,9 +52,11 @@ export class SelectionManager { public static DeselectAll = (except?: Doc): void => { const found = this.Instance.SelectedViews.find(dv => dv.Document === except); - LinkManager.currentLink = undefined; - LinkManager.currentLinkAnchor = undefined; - runInAction(() => (this.Instance.SelectedSchemaDocument = undefined)); + runInAction(() => { + LinkManager.Instance.currentLink = undefined; + LinkManager.Instance.currentLinkAnchor = undefined; + this.Instance.SelectedSchemaDocument = undefined; + }); this.Instance.SelectedViews.forEach(dv => { dv.IsSelected = false; dv._props.whenChildContentsActiveChanged(false); |