Skip to content

Commit f138b15

Browse files
fix(Dropdown): update search prop typing (#4014)
1 parent 125fda7 commit f138b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/Dropdown/Dropdown.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export interface StrictDropdownProps {
246246
* A selection dropdown can allow a user to search through a large list of choices.
247247
* Pass a function here to replace the default search.
248248
*/
249-
search?: (options: DropdownItemProps[], value: string) => DropdownItemProps[] | boolean
249+
search?: boolean | ((options: DropdownItemProps[], value: string) => DropdownItemProps[])
250250

251251
/** A shorthand for a search input. */
252252
searchInput?: any

0 commit comments

Comments
 (0)