diff options
author | bobzel <zzzman@gmail.com> | 2021-01-28 13:11:05 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-01-28 13:11:05 -0500 |
commit | 61fcef6b466c40f5b5d9c5831f25d3df240dbdf3 (patch) | |
tree | 8f8090746cccb07f7a54818fb529c459764d1520 | |
parent | 3b6a42e00789d7a43fd82f12a2d10766d3058e90 (diff) |
from last
-rw-r--r-- | src/client/views/nodes/FilterBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/FilterBox.tsx b/src/client/views/nodes/FilterBox.tsx index 8d1c952de..71196ea19 100644 --- a/src/client/views/nodes/FilterBox.tsx +++ b/src/client/views/nodes/FilterBox.tsx @@ -158,7 +158,7 @@ export class FilterBox extends ViewBoxBaseComponent<FieldViewProps, FilterBoxDoc const script = ScriptField.MakeScript(scriptText, { this: Doc.name, heading: "string", checked: "string", containingTreeView: Doc.name }); return script ? () => script : undefined; } - + suppressChildClick = () => ScriptField.MakeScript("")!; render() { const facetCollection = this.props.Document; const flyout = <div className="filterBox-flyout" style={{ width: `100%`, height: this.props.PanelHeight() - 30 }} onWheel={e => e.stopPropagation()}> @@ -182,10 +182,10 @@ export class FilterBox extends ViewBoxBaseComponent<FieldViewProps, FilterBoxDoc <CollectionTreeView Document={facetCollection} DataDoc={Doc.GetProto(facetCollection)} - fieldKey={`${this.props.fieldKey}`} + fieldKey={this.props.fieldKey} CollectionView={undefined} cantBrush={true} - onChildClick={() => ScriptField.MakeScript("")!} + onChildClick={this.suppressChildClick} docFilters={returnEmptyFilter} docRangeFilters={returnEmptyFilter} searchFilterDocs={returnEmptyDoclist} |