aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/TabDocView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-09-17 18:53:13 -0400
committerbobzel <zzzman@gmail.com>2024-09-17 18:53:13 -0400
commitdca949e163ba916e392bf598086ce3eef72ad17c (patch)
tree0d7dd01d85f14d29dac8933af39274af108d69ea /src/client/views/collections/TabDocView.tsx
parenteca725c77fad2a3b4335b50e21fee46201951a0f (diff)
parent4f2ee4a8642a93fb399b979750078374b317af32 (diff)
Merge branch 'master' into aisosa-starter
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
-rw-r--r--src/client/views/collections/TabDocView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx
index def1ea731..f56ea9d76 100644
--- a/src/client/views/collections/TabDocView.tsx
+++ b/src/client/views/collections/TabDocView.tsx
@@ -506,13 +506,13 @@ export class TabDocView extends ObservableReactComponent<TabDocViewProps> {
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
- onActiveContentItemChanged = (contentItem: any) => {
+ onActiveContentItemChanged = action((contentItem: any) => {
if (!contentItem || (this.stack === contentItem.parent && ((contentItem?.tab === this.tab && !this._isActive) || (contentItem?.tab !== this.tab && this._isActive)))) {
this._activated = this._isActive = !contentItem || contentItem?.tab === this.tab;
if (!this._view && this.tab?.contentItem?.config?.props?.panelName !== TabDocView.DontSelectOnActivate) setTimeout(() => DocumentView.SelectView(this._view, false));
!this._isActive && this._document && Doc.UnBrushDoc(this._document); // bcz: bad -- trying to simulate a pointer leave event when a new tab is opened up on top of an existing one.
}
- };
+ });
// adds a tab to the layout based on the locaiton parameter which can be:
// close[:{left,right,top,bottom}] - e.g., "close" will close the tab, "close:left" will close the left tab,