Select: fix type of formatCreateLabel prop (#82138)
fix type of formatCreateLabel prop of Select
This commit is contained in:
@@ -37,7 +37,7 @@ export interface SelectCommonProps<T> {
|
||||
filterOption?: (option: SelectableValue<T>, searchQuery: string) => boolean;
|
||||
formatOptionLabel?: (item: SelectableValue<T>, formatOptionMeta: FormatOptionLabelMeta<T>) => React.ReactNode;
|
||||
/** Function for formatting the text that is displayed when creating a new value*/
|
||||
formatCreateLabel?: (input: string) => string;
|
||||
formatCreateLabel?: (input: string) => React.ReactNode;
|
||||
getOptionLabel?: (item: SelectableValue<T>) => React.ReactNode;
|
||||
getOptionValue?: (item: SelectableValue<T>) => T | undefined;
|
||||
hideSelectedOptions?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user