diff options
Diffstat (limited to 'src/client/util/DocumentManager.ts')
| -rw-r--r-- | src/client/util/DocumentManager.ts | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts index bfe0e1b48..b9f6059f4 100644 --- a/src/client/util/DocumentManager.ts +++ b/src/client/util/DocumentManager.ts @@ -11,7 +11,6 @@ import { CollectionDockingView } from '../views/collections/CollectionDockingVie  import { TabDocView } from '../views/collections/TabDocView';  import { LightboxView } from '../views/LightboxView';  import { DocFocusOptions, DocumentView, DocumentViewInternal, OpenWhere, OpenWhereMod } from '../views/nodes/DocumentView'; -import { FormattedTextBox } from '../views/nodes/formattedText/FormattedTextBox';  import { KeyValueBox } from '../views/nodes/KeyValueBox';  import { LinkAnchorBox } from '../views/nodes/LinkAnchorBox';  import { PresBox } from '../views/nodes/trails'; @@ -320,7 +319,9 @@ export class DocumentManager {      @action      restoreDocView(viewSpec: Opt<Doc>, docView: DocumentView, options: DocFocusOptions, contextView: Opt<DocumentView>, targetDoc: Doc) {          if (viewSpec && docView) { -            if (docView.ComponentView instanceof FormattedTextBox) docView.ComponentView?.focus(viewSpec, options); +            //if (docView.ComponentView instanceof FormattedTextBox) +            //viewSpec !== docView.rootDoc && +            docView.ComponentView?.focus?.(viewSpec, options);              PresBox.restoreTargetDocView(docView, viewSpec, options.zoomTime ?? 500);              Doc.linkFollowHighlight(viewSpec ? [docView.rootDoc, viewSpec] : docView.rootDoc, undefined, options.effect);              if (options.playMedia) docView.ComponentView?.playFrom?.(NumCast(docView.rootDoc._layout_currentTimecode)); | 
