diff options
Diffstat (limited to 'src/client/views/LightboxView.tsx')
| -rw-r--r-- | src/client/views/LightboxView.tsx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx index 84738112f..07ebe5fa4 100644 --- a/src/client/views/LightboxView.tsx +++ b/src/client/views/LightboxView.tsx @@ -116,7 +116,7 @@ export class LightboxView extends React.Component<LightboxViewProps> {          const target = LightboxView._docTarget = LightboxView._future?.pop();          const targetDocView = target && DocumentManager.Instance.getLightboxDocumentView(target);          if (targetDocView && target) { -            const l = DocUtils.MakeLinkToActiveAudio(targetDocView.ComponentView?.getAnchor?.() || target); +            const l = DocUtils.MakeLinkToActiveAudio(targetDocView.ComponentView?.getAnchor?.() || target).lastElement();              l && (Cast(l.anchor2, Doc, null).backgroundColor = "lightgreen");              targetDocView.focus(target, { originalTarget: target, willZoom: true, scale: 0.9 });              if (LightboxView._history?.lastElement().target !== target) LightboxView._history?.push({ doc, target }); | 
