Skip to content

Commit

Permalink
Facet filters: Don't remove spaces from value
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed May 26, 2021
1 parent 6d4ba5d commit f05f823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { debounce } from './utils/helpers';
*/
const handleFacetSearch = (event, facetTerms) => {
const { target } = event;
const searchTerm = target.value.replace(/\s/g, '').toLowerCase();
const searchTerm = target.value.toLowerCase();
const terms = facetTerms.querySelectorAll('.term');

terms.forEach((term) => {
Expand Down
Loading

0 comments on commit f05f823

Please sign in to comment.