diff options
| author | bobzel <zzzman@gmail.com> | 2024-10-28 20:08:35 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-10-28 20:08:35 -0400 |
| commit | c45e21a8960298b77c3508b047cfbd9fdcf2c602 (patch) | |
| tree | a0fabfd203267963e7a8a648ac01793b08bbdcf4 /src/client/views/collections/TabDocView.tsx | |
| parent | 8ac260db2fdffc37ff9b6e91971f287df6a70528 (diff) | |
| parent | 63f9f9573dab9745d2f570e1917b325a474fdd93 (diff) | |
Merge branch 'master' into alyssa-starter
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 5bfdee1f5..60728877a 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -285,6 +285,7 @@ export class TabDocView extends ObservableReactComponent<TabDocViewProps> { static Activate = (tabDoc: Doc) => { const tab = Array.from(CollectionDockingView.Instance?.tabMap ?? []).find(findTab => findTab.DashDoc === tabDoc && !findTab.contentItem.config.props.keyValue); + if (tab && tab.header.parent._activeContentItem === tab.contentItem) return false; 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; }; |
