Skip to content

Commit a3a661e

Browse files
authored
Merge pull request #14 from FoxComm/feature/filters-initialy-expanded
Extend FilterGroup component with ability to be initially expanded.
2 parents 5149e52 + bbe6da4 commit a3a661e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/core/filters/filter-group.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type State = {
1313

1414
export default class FilterGroup extends Component {
1515
props: FilterGroupProps;
16-
state: State = { expanded: false };
16+
state: State = { expanded: this.props.initiallyExpanded };
1717

1818
selectedCount = () => {
1919
const { values = [] } = this.props;

src/components/core/filters/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ export type FilterGroupProps = {
2626
values?: Array<FilterValue>,
2727
onClearFacet?: Function,
2828
onSelectFacet?: Function,
29+
initiallyExpanded?: boolean,
2930
};

0 commit comments

Comments
 (0)