diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-12 23:41:31 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-12 23:41:31 -0400 |
| commit | 0ddb1a572d3579469bc08469d43c6fcdb114f901 (patch) | |
| tree | e3e5a3420d3b3dcc5c456e989420a9c04f22e81e /src/client/views/collections/CollectionMenu.tsx | |
| parent | 93b72ab7818e48592e9d42d092fa91b4ebedd49e (diff) | |
fixed stacking view selections to have the right bounding box. fixed text boxes to work with headerVIew template which has multiple text boxes in it.
Diffstat (limited to 'src/client/views/collections/CollectionMenu.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionMenu.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx index a58edc604..3cc041e0b 100644 --- a/src/client/views/collections/CollectionMenu.tsx +++ b/src/client/views/collections/CollectionMenu.tsx @@ -533,7 +533,7 @@ export class CollectionFreeFormViewChrome extends React.Component<CollectionMenu if (this.selectedDoc) { const layoutField = Doc.LayoutField(this.selectedDoc); const layoutStr = this.selectedDocumentView?.props.LayoutTemplateString || StrCast(layoutField); - return layoutStr.includes("FormattedText") || StrCast((layoutField as Doc)?.layout).includes("FormattedText"); + return (document.activeElement as any)?.className.includes("ProseMirror") || layoutStr.includes("FormattedText") || StrCast((layoutField as Doc)?.layout).includes("FormattedText"); } else return false; } |
