feat(CommandPalette): handle filter false and postFilter

This commit is contained in:
Benjamin Canac
2024-08-22 15:41:49 +02:00
parent d558b3e29c
commit 1ef977fb8c
2 changed files with 43 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ export interface SelectMenuProps<T> extends Pick<ComboboxRootProps<T>, 'modelVal
portal?: boolean
/**
* Whether to filter items or not, can be an array of fields to filter.
* When `false`, items will not be filtered which is useful for custom filtering.
* When `false`, items will not be filtered which is useful for custom filtering (useAsyncData, useFetch, etc.).
* @defaultValue ['label']
*/
filter?: boolean | string[]