diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-22 13:46:39 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-22 13:46:39 -0400 |
| commit | 5bf71bb9fde28de8cc2cedaf03708315933acc30 (patch) | |
| tree | a6674572da4a3adcb7a29977da1f7e0d73e59b17 /src/client/views/collections/CollectionStackingView.tsx | |
| parent | 8a2d35bd9bf9d9871c1aa12332d11a99706b4a73 (diff) | |
more cleanup in currentuserutils. fixed so that removing items from a list in code will remove them from the UI
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 684c919bd..4e8c14039 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -229,6 +229,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection } } isContentActive = () => this.props.isSelected() || this.props.isContentActive(); + isChildContentActive = () => this.props.isDocumentActive?.() && (this.props.childDocumentsActive?.() || BoolCast(this.rootDoc.childDocumentsActive)); getDisplayDoc(doc: Doc, width: () => number) { const dataDoc = (!doc.isTemplateDoc && !doc.isTemplateForField && !doc.PARAMS) ? undefined : this.props.DataDoc; const height = () => this.getDocHeight(doc); @@ -245,7 +246,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection styleProvider={this.styleProvider} docViewPath={this.props.docViewPath} fitWidth={this.props.childFitWidth} - isContentActive={emptyFunction} + isContentActive={this.isChildContentActive} onKey={this.onKeyDown} isDocumentActive={this.isContentActive} LayoutTemplate={this.props.childLayoutTemplate} |
