|
|
@@ -18,9 +18,12 @@ export function useSelectFilterOptions<
|
|
|
function () {
|
|
|
if (!search) return options;
|
|
|
|
|
|
- return options.filter(
|
|
|
- ({label, value}) => label?.includes(search) || value?.includes(search),
|
|
|
- );
|
|
|
+ return options.filter(function ({label, value}) {
|
|
|
+ return (
|
|
|
+ label?.toLowerCase()?.includes(search.toLowerCase()) ||
|
|
|
+ value?.toLowerCase()?.includes(search.toLowerCase())
|
|
|
+ );
|
|
|
+ });
|
|
|
},
|
|
|
[options, search],
|
|
|
);
|