Open yifanwww opened 3 months ago
optionRender should use generic type OptionType instead of the default type BaseOptionType
optionRender
OptionType
BaseOptionType
code: https://github.com/react-component/select/blob/v14.13.0/src/Select.tsx#L145
optionRender?: ( - oriOption: FlattenOptionData<BaseOptionType>, + oriOption: FlattenOptionData<OptionType>, info: { index: number }, ) => React.ReactNode;
optionRender
should use generic typeOptionType
instead of the default typeBaseOptionType
code: https://github.com/react-component/select/blob/v14.13.0/src/Select.tsx#L145