diff options
| author | bobzel <zzzman@gmail.com> | 2022-08-18 11:18:14 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-08-18 11:18:14 -0400 |
| commit | 5a425e5cf18115921ecb4e7cf931e65f45dab8e2 (patch) | |
| tree | 23fcecc2c4fc93e8e0ba25735c4cb07a00ee958e /src/client/views/collections/TabDocView.tsx | |
| parent | 0178de4ab9ffd11630b700f9c02468b74beabd14 (diff) | |
fixed up presboxelement to not reference presbox.instance. fixing layout of presboxelement in treeview. fixing "removing" an inkMask without removing it from the collection so that it can be turned on and off.
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index ff4b1e2ce..e147f34d2 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -299,8 +299,8 @@ export class TabDocView extends React.Component<TabDocViewProps> { pinDoc.presMovement = PresMovement.None; } if (curPres.expandBoolean) pinDoc.presExpandInlineButton = true; - PresBox.Instance?._selectedArray.clear(); - pinDoc && PresBox.Instance?._selectedArray.set(pinDoc, undefined); //Update selected array + PresBox.Instance?.clearSelectedArray(); + pinDoc && PresBox.Instance?.addToSelectedArray(pinDoc); //Update selected array }); if ( CollectionDockingView.Instance && |
