aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-03-23 21:13:38 -0400
committerbobzel <zzzman@gmail.com>2024-03-23 21:13:38 -0400
commitb949608ff69fb66c30bbed439b1c37f8fffd2333 (patch)
treedb3a94be5527814aa2f4e2c3f97c43156d5b229d /src/fields/Doc.ts
parent4ea0ea97359cf2f3e97367dafbfaf9157ecc987b (diff)
fixed linking to parts of a template. fixed highlting part of a template when following a link to it.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 4b40d11b9..246828709 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -1279,7 +1279,8 @@ export namespace Doc {
highlightedDocs.add(doc);
doc[Highlight] = true;
doc[Animation] = presentation_effect;
- if (dataAndDisplayDocs) {
+ if (dataAndDisplayDocs && !doc.resolvedDataDoc) {
+ // if doc is a layout template then we don't want to highlight the proto since that will be the entire template, not just the specific layout field
highlightedDocs.add(doc[DocData]);
doc[DocData][Highlight] = true;
}