mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
[MultiSelect] Fix filterItem return type
This commit is contained in:
parent
4fbcbb0b5f
commit
8835954a41
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@
|
||||||
/**
|
/**
|
||||||
* Override the filtering logic
|
* Override the filtering logic
|
||||||
* The default filtering is an exact string comparison
|
* The default filtering is an exact string comparison
|
||||||
* @type {(item: MultiSelectItem, value: string) => string}
|
* @type {(item: MultiSelectItem, value: string) => boolean}
|
||||||
*/
|
*/
|
||||||
export let filterItem = (item, value) =>
|
export let filterItem = (item, value) =>
|
||||||
item.text.toLowerCase().includes(value.trim().toLowerCase());
|
item.text.toLowerCase().includes(value.trim().toLowerCase());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue