aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorAubrey-Li <63608597+Aubrey-Li@users.noreply.github.com>2021-08-03 16:57:25 -0700
committerAubrey-Li <63608597+Aubrey-Li@users.noreply.github.com>2021-08-03 16:57:25 -0700
commitfaa2449d0667507b5424984c0f1d70886d0cb025 (patch)
tree02a984b9b8fb2b8e3c4c93f102d9c4b700ff0fda /src/client/util/DocumentManager.ts
parentf4b910cc51c7c6b9c794d1b59198d132af3580b7 (diff)
parent0e8aef275346b4ba3bc1bb91fda17a335c307bf1 (diff)
Merge branch 'master' into trails-aubrey
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 5b092258a..9c6100249 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -163,7 +163,7 @@ export class DocumentManager {
const targetDocContext = contextDoc || annotatedDoc;
const targetDocContextView = targetDocContext && getFirstDocView(targetDocContext);
const focusView = !docView && targetDoc.type === DocumentType.MARKER && annoContainerView ? annoContainerView : docView;
- if (!docView && annoContainerView && !focusView) {
+ if (!docView && annoContainerView) {
annoContainerView.focus(targetDoc); // this allows something like a PDF view to remove its doc filters to expose the target so that it can be found in the retry code below
}
if (focusView) {