diff options
author | bobzel <zzzman@gmail.com> | 2024-10-14 19:55:32 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-14 19:55:32 -0400 |
commit | 29b83f023442c313ca5cf95f70f6430f101060e6 (patch) | |
tree | 9847ff4419e50f5bc8b7c1512a07b72275cd3b40 /src/fields/Doc.ts | |
parent | a60c12ddef3db4123dffb2c91b446d20633f523a (diff) |
reorganized comparisonBox related components -- moved stuff down into Docs.Crete and CurrentUserUtils. changed Doc.Copy to copy Doc's in fields tagged with cloneOnCopy. Changed ComparisonBox to support hover for slide or flip views. Fixed pointerEfvents for hover in comparisonBox
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 45dfe233f..6ec195910 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1003,7 +1003,7 @@ export namespace Doc { } else if (field instanceof ObjectField) { const docAtKey = doc[key]; copy[key] = - docAtKey instanceof Doc && key.includes('layout[') + docAtKey instanceof Doc && (key.includes('layout[') || docAtKey.cloneOnCopy) ? new ProxyField(Doc.MakeCopy(docAtKey)) // copy the expanded render template : ObjectField.MakeCopy(field); } else if (field instanceof Promise) { |