fix(client): allow match query case insensitive (#3127)

This commit is contained in:
Junyi 2023-12-02 14:57:56 +08:00 committed by GitHub
parent 9bf3be222a
commit c1c91095b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
/> />
); );