diff options
| author | bobzel <zzzman@gmail.com> | 2024-10-18 00:28:55 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-10-18 00:28:55 -0400 |
| commit | 0728e918e6d075c0eda738b7d2fdbf6095c714ae (patch) | |
| tree | 24a3e316852922eb3a0a94c2c6e1a0d078d57825 /src/client/views/collections/TabDocView.tsx | |
| parent | 7b29d9c14cb1ea786e64655b33b245ed14bd2d9e (diff) | |
fixed following links/show document of items in tabs/carousel/card view to set options.didMove correctly so that toggleTarget works.
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..1c5722217 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.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; }; |
