File tree 2 files changed +8
-0
lines changed
src/client/components/facet_bar 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ class FacetBar extends React.Component {
102
102
updatedFilter = { updatedFilter }
103
103
fetchFacet = { this . props . fetchFacet }
104
104
someFacetIsFetching = { someFacetIsFetching }
105
+ fetchingResultCount = { this . props . fetchingResultCount }
105
106
updateFacetOption = { this . props . updateFacetOption }
106
107
/>
107
108
)
@@ -117,6 +118,7 @@ class FacetBar extends React.Component {
117
118
facetUpdateID = { facetUpdateID }
118
119
clientFSUpdateFacet = { this . props . clientFSUpdateFacet }
119
120
someFacetIsFetching = { someFacetIsFetching }
121
+ fetchingResultCount = { false }
120
122
facetedSearchMode = 'clientFS'
121
123
/>
122
124
)
Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ class HierarchicalFacet extends Component {
234
234
// node.id === 'http://ldf.fi/MISSING_VALUE' ||
235
235
// prevent selecting when another facet is still updating:
236
236
this . props . someFacetIsFetching ||
237
+ // prevent selecting while resultcount is updating
238
+ this . props . fetchingResultCount ||
237
239
// prevent selecting all facet values when there is a logical OR between the selections:
238
240
// (!this.props.facet.useConjuction && !isSelected && selectedCount >= this.props.facet.distinctValueCount - 1) ||
239
241
// prevent selecting when parent has been selected
@@ -400,6 +402,10 @@ HierarchicalFacet.propTypes = {
400
402
* A facet should be disabled while some other facet is updating.
401
403
*/
402
404
someFacetIsFetching : PropTypes . bool . isRequired ,
405
+ /**
406
+ * A facet should be disabled while resultcount is updating.
407
+ */
408
+ fetchingResultCount : PropTypes . bool . isRequired ,
403
409
/**
404
410
* An integer for detecting if some other facet was updated.
405
411
*/
You can’t perform that action at this time.
0 commit comments