diff options
Diffstat (limited to 'src/fields')
| -rw-r--r-- | src/fields/Doc.ts | 3 | ||||
| -rw-r--r-- | src/fields/List.ts | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 5028e1f8f..7b5e21ab7 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1235,6 +1235,8 @@ export namespace Doc { // 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; + // want to highlight the targets of presentation docs explicitly since following a pres target does not highlight PDf <Annotations> which are not DocumentViews + if (doc.presentation_targetDoc) DocCast(doc.presentation_targetDoc)[Highlight] = true; } }); } @@ -1246,6 +1248,7 @@ export namespace Doc { highlightedDocs.delete(doc[DocData]); doc[Highlight] = doc[DocData][Highlight] = false; doc[Animation] = undefined; + if (doc.presentation_targetDoc) DocCast(doc.presentation_targetDoc)[Highlight] = false; }); }); } diff --git a/src/fields/List.ts b/src/fields/List.ts index 852b05bc6..38c47d546 100644 --- a/src/fields/List.ts +++ b/src/fields/List.ts @@ -308,7 +308,7 @@ class ListImpl<T extends FieldType> extends ObjectField { // eslint-disable-next-line no-use-before-define private [SelfProxy]: List<FieldType>; // also used in utils.ts even though it won't be found using find all references - [ToScriptString]() { return `new List(${this[ToJavascriptString]})`; } // prettier-ignore + [ToScriptString]() { return `new List(${this[ToJavascriptString]()})`; } // prettier-ignore [ToJavascriptString]() { return `[${(this as any).map((field: any) => Field.toScriptString(field))}]`; } // prettier-ignore [ToString]() { return `[${(this as any).map((field: any) => Field.toString(field))}]`; } // prettier-ignore } |
