mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00: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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user