diff --git a/src/components/RefinementList/RefinementList.js b/src/components/RefinementList/RefinementList.js index ea89a652e9..6b35f1eae2 100644 --- a/src/components/RefinementList/RefinementList.js +++ b/src/components/RefinementList/RefinementList.js @@ -129,9 +129,11 @@ class RefinementList extends React.Component { const limit = this.state.isShowMoreOpen ? this.props.limitMax : this.props.limitMin; let displayedFacetValues = this.props.facetValues.slice(0, limit); + const displayShowMore = this.props.showMore === true && + this.props.facetValues.length > displayedFacetValues.length || + this.state.isShowMoreOpen === true; - const showMoreBtn = - this.props.showMore ? + const showMoreBtn = displayShowMore ?