diff options
| author | bobzel <zzzman@gmail.com> | 2020-11-06 15:26:21 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-11-06 15:26:21 -0500 |
| commit | e1c3de993d9e858901cf8712383bf8a204440795 (patch) | |
| tree | d932f9b26f1334bf1c9de0bff9ce32badcd4504b /src/client/views/collections | |
| parent | 24d2da070fbac9d950bae0eff6cdf4137d9b5305 (diff) | |
| parent | cecbf1d57412c0db3b0165f2e180fb5924a29ba8 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index efbe85f1a..7040b5e56 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -407,6 +407,10 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque if (!DocumentManager.Instance.getDocumentView(curPres)) { CollectionDockingView.AddSplit(curPres, "right"); } + PresBox.Instance?._selectedArray.clear(); + pinDoc && PresBox.Instance?._selectedArray.set(pinDoc, undefined); //Updates selected array + const index = PresBox.Instance?.childDocs.indexOf(pinDoc); + index && (curPres._itemIndex = index); if (e instanceof KeyboardEvent ? e.key === "c" : true) { const x = this.Bounds.left + this.Bounds.width / 2; const y = this.Bounds.top + this.Bounds.height / 2; |
