mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(multi-select): fix filterItem
return type (#1972)
This commit is contained in:
parent
607a97cddb
commit
6140c3c5a9
5 changed files with 7 additions and 4 deletions
2
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
2
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
|
@ -90,7 +90,7 @@ export interface MultiSelectProps extends RestProps {
|
|||
* The default filtering is an exact string comparison
|
||||
* @default (item, value) => item.text.toLowerCase().includes(value.trim().toLowerCase())
|
||||
*/
|
||||
filterItem?: (item: MultiSelectItem, value: string) => string;
|
||||
filterItem?: (item: MultiSelectItem, value: string) => boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to open the dropdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue