From e8856332c19abe12fe43c940e35b49ab77aae612 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 30 Aug 2020 01:06:23 -0400 Subject: from last --- src/client/views/collections/TabDocView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 5bff1cdc3..5acf825f1 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -326,6 +326,7 @@ export class TabDocView extends React.Component { ; } + focusFunc = (doc: Doc, willZoom: boolean, scale?: number, afterFocus?: () => void) => afterFocus?.(); setView = action((view: DocumentView) => this._view = view); @computed get docView() { TraceMobx(); @@ -348,7 +349,7 @@ export class TabDocView extends React.Component { renderDepth={0} parentActive={returnTrue} whenActiveChanged={emptyFunction} - focus={(doc: Doc, willZoom: boolean, scale?: number, afterFocus?: () => void) => afterFocus?.()} + focus={this.focusFunc} backgroundColor={CollectionDockingView.Instance.props.backgroundColor} addDocTab={this.addDocTab} pinToPres={TabDocView.PinDoc} -- cgit v1.2.3-70-g09d2