Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/CategoryList/CategoryList.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ export default class CategoryList extends React.Component {
title={c.name}
to={{ pathname: link }}
className={className}
onClick={() => this.props.classClicked()}
onClick={() => {
this.props.classClicked();
// Auto-expand filter list when clicking on a class that has filters
if ((c.filters || []).length > 0 && !this.state.openClasses.includes(id)) {
this.setState({ openClasses: [...this.state.openClasses, id] });
}
}}
>
{c.name}
</Link>
Expand Down
Loading