Select: fix type of formatCreateLabel prop (#82138)

fix type of formatCreateLabel prop of Select
This commit is contained in:
mikkancso
2024-02-08 11:04:51 +01:00
committed by GitHub
parent 35e96d6b04
commit 7814c817b9
@@ -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;