Skip to content

Commit 83a4737

Browse files
authored
Merge pull request #1473 from AmirSaif/updateCaseSensitivityOfFilterOptionsv2
feat(mui5):Update filter options to case insensitive
2 parents 9c693a4 + 39c9abb commit 83a4737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/common/src/dual-list-select/dual-list-select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const DualListSelectCommon = (props) => {
3939
});
4040

4141
const leftValues = rest.options
42-
.filter((option) => !rest.input.value.includes(option.value) && option.label.includes(state.filterOptions))
42+
.filter((option) => !rest.input.value.includes(option.value) && option.label.toLowerCase().includes(state.filterOptions.toLowerCase()))
4343
.sort((a, b) => (state.sortLeftDesc ? a.label.localeCompare(b.label) : b.label.localeCompare(a.label)));
4444
const rightValues = rest.options
45-
.filter((option) => rest.input.value.includes(option.value) && option.label.includes(state.filterValue))
45+
.filter((option) => rest.input.value.includes(option.value) && option.label.toLowerCase().includes(state.filterValue.toLowerCase()))
4646
.sort((a, b) => (state.sortRightDesc ? a.label.localeCompare(b.label) : b.label.localeCompare(a.label)));
4747

4848
const handleOptionsClick = (event, value) => handleOptionClick(event, value, leftValues, true, dispatch, state);

0 commit comments

Comments
 (0)