fix type issue

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian Malton committed 2020-06-12 11:14:37 -04:00
1 parent 749112acc7
commit 04127d77e9
1 file changed
+2 -2
@@ -31,7 +31,7 @@ export interface SelectProps<T = any> extends ReactSelectProps<T>, CreatableProp
menuClass?: string;
isCreatable?: boolean;
autoConvertOptions?: boolean; // to internal format (i.e. {value: T, label: string}[]), not working with groups
onChange?(option: T, meta?: ActionMeta<OptionTypeBase>): void;
onChange?(option: T, meta?: ActionMeta): void;
}
@observer
@@ -76,7 +76,7 @@ export class Select extends React.Component<SelectProps> {
}
@autobind()
onChange(value: SelectOption, meta: ActionMeta<OptionTypeBase>) {
onChange(value: SelectOption, meta: ActionMeta) {
if (this.props.onChange) {
this.props.onChange(value, meta);
}