Skip to content

Commit

Permalink
Make text filtering case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech committed Sep 19, 2024
1 parent efef6b4 commit 9f114b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const MultiSelectText = ({ options, selectedOptions, setSelectedOptions }) => {

const filteredOptions = options
.filter(o => !!o)
.filter(opt => opt.includes(searchString));
.filter(opt => opt.toLowerCase().includes(searchString.toLowerCase()));

const onChangeSearchString = e => {
setSearchString(e.target.value);
Expand Down

0 comments on commit 9f114b9

Please sign in to comment.