fix(client): allow match query case insensitive (#3127)
This commit is contained in:
parent
9bf3be222a
commit
c1c91095b8
@ -52,7 +52,10 @@ export const CollectionSelect = connect(
|
|||||||
popupMatchSelectWidth={false}
|
popupMatchSelectWidth={false}
|
||||||
{...others}
|
{...others}
|
||||||
showSearch
|
showSearch
|
||||||
filterOption={(input, option) => (option?.label ?? '').includes(input)}
|
filterOption={(input, option) =>
|
||||||
|
(option?.label.toLowerCase() ?? '').includes(input.toLocaleLowerCase()) ||
|
||||||
|
(option?.value.toString().toLowerCase() ?? '').includes(input.toLocaleLowerCase())
|
||||||
|
}
|
||||||
options={options}
|
options={options}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user