diff --git a/packages/common/src/dual-list-select/dual-list-select.js b/packages/common/src/dual-list-select/dual-list-select.js index 37eaf0ebc..4fae1dc41 100644 --- a/packages/common/src/dual-list-select/dual-list-select.js +++ b/packages/common/src/dual-list-select/dual-list-select.js @@ -40,18 +40,22 @@ const DualListSelectCommon = (props) => { const leftValues = rest.options .filter((option) => { - if(!props.isFilterCaseInSensitive) + if (!props.isFilterCaseInSensitive){ return !rest.input.value.includes(option.value) && option.label.includes(state.filterOptions); - else + } + else{ return !rest.input.value.includes(option.value) && option.label.toLowerCase().includes(state.filterOptions.toLowerCase()); + } }) .sort((a, b) => (state.sortLeftDesc ? a.label.localeCompare(b.label) : b.label.localeCompare(a.label))); const rightValues = rest.options .filter((option) => { - if(!props.isFilterCaseInSensitive) + if (!props.isFilterCaseInSensitive){ return rest.input.value.includes(option.value) && option.label.includes(state.filterValue); - else + } + else{ return rest.input.value.includes(option.value) && option.label.toLowerCase().includes(state.filterValue.toLowerCase()); + } }) .sort((a, b) => (state.sortRightDesc ? a.label.localeCompare(b.label) : b.label.localeCompare(a.label)));