diff options
author | bobzel <zzzman@gmail.com> | 2020-09-29 21:13:39 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-29 21:13:39 -0400 |
commit | f6d6d9426b9a27c59278e8b04d27f1435c8b57ea (patch) | |
tree | 97bfbd11a55b7e997a9a80dbfe00b86315681f4a | |
parent | a64e926beeda627fb9d7935b7fef2233bb09a869 (diff) |
from last
-rw-r--r-- | src/client/views/linking/LinkMenuItem.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/linking/LinkMenuItem.tsx b/src/client/views/linking/LinkMenuItem.tsx index 866db958a..62a2a525b 100644 --- a/src/client/views/linking/LinkMenuItem.tsx +++ b/src/client/views/linking/LinkMenuItem.tsx @@ -186,10 +186,8 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { addDocTab(annotationOn instanceof Doc ? annotationOn : destinationDoc, StrCast(linkDoc.followLinkLocation)); if (annotationOn) { setTimeout(() => { - const dv = DocumentManager.Instance.getFirstDocumentView(destinationDoc); - undoBatch(() => { - dv?.props.focus(destinationDoc, false); - })(); + const dv = DocumentManager.Instance.getFirstDocumentView(destinationDoc); \ + dv?.props.focus(destinationDoc, false); }); } } else { |