diff options
| author | eperelm2 <emily_perelman@brown.edu> | 2023-08-24 20:54:45 +0200 |
|---|---|---|
| committer | eperelm2 <emily_perelman@brown.edu> | 2023-08-24 20:54:45 +0200 |
| commit | f189b4f65163a7bc231b5aa57f01d915f953931d (patch) | |
| tree | b8bd6fba593a29319972a40a07f572063b300b25 /src/client/views/collections/TabDocView.tsx | |
| parent | 2fcad5e8bd1412487b4fcacefdc12a2df5707638 (diff) | |
| parent | 372face940712d239d48f9884ded34d82d170a94 (diff) | |
filter - made small finishing changes
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 67b7b39dd..d787f5262 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -396,7 +396,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { return NumCast(Cast(PresBox.Instance.activeItem.presentationTargetDoc, Doc, null)._currentFrame); }; static Activate = (tabDoc: Doc) => { - const tab = Array.from(CollectionDockingView.Instance?.tabMap!).find(tab => tab.DashDoc === tabDoc); + const tab = Array.from(CollectionDockingView.Instance?.tabMap!).find(tab => tab.DashDoc === tabDoc && !tab.contentItem.config.props.keyValue); tab?.header.parent.setActiveContentItem(tab.contentItem); // glr: Panning does not work when this is set - (this line is for trying to make a tab that is not topmost become topmost) return tab !== undefined; }; |
