aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-30 00:58:10 -0400
committerbobzel <zzzman@gmail.com>2020-08-30 00:58:10 -0400
commitdafb4f33ee32ddc323860bf54c560d2def66c152 (patch)
treed9cec550e2a8f7c529abbf3672ceed1cc257e852 /src/client/util/DocumentManager.ts
parent9e6f81fdd224f5988ce3b8e794d630f81a34bc0b (diff)
fixed undo for following links from a Document view.
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 93c37dbd1..f085f615c 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -160,6 +160,7 @@ export class DocumentManager {
docView.props.Document.hidden = !docView.props.Document.hidden;
}
else {
+ docView.select(false);
docView.props.Document.hidden && (docView.props.Document.hidden = undefined);
docView.props.focus(docView.props.Document, willZoom, undefined, focusAndFinish);
highlight();