mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix type issue
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
parent
749112acc7
commit
04127d77e9
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user