Skip to content

Commit

Permalink
Only invoke toggleFilterOptions if search filters are active
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 9, 2024
1 parent c3437c4 commit a33b8c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/SearchBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,9 @@ class SearchBox extends React.Component {
if (isEmpty(this.state.searchResults) && this.props.theme) {
this.startSearch();
}
this.toggleFilterOptions(false);
if (this.props.searchOptions.allowSearchFilters) {
this.toggleFilterOptions(false);
}
};
onBlur = () => {
if (this.preventBlur && this.searchBox) {
Expand Down

0 comments on commit a33b8c3

Please sign in to comment.