mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Revert select component (#488)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
8c471daab6
commit
f597afb72e
@ -10,7 +10,7 @@ import ReactSelect, { components as ReactSelectComponents } from "react-select"
|
|||||||
import { Props as ReactSelectProps } from "react-select/base"
|
import { Props as ReactSelectProps } from "react-select/base"
|
||||||
import Creatable, { CreatableProps } from "react-select/creatable"
|
import Creatable, { CreatableProps } from "react-select/creatable"
|
||||||
import { StylesConfig } from "react-select/src/styles"
|
import { StylesConfig } from "react-select/src/styles"
|
||||||
import { ActionMeta, OptionTypeBase } from "react-select/src/types"
|
import { ActionMeta } from "react-select/src/types"
|
||||||
import { themeStore } from "../../theme.store";
|
import { themeStore } from "../../theme.store";
|
||||||
|
|
||||||
export { ReactSelectComponents }
|
export { ReactSelectComponents }
|
||||||
@ -31,7 +31,7 @@ export interface SelectProps<T = any> extends ReactSelectProps<T>, CreatableProp
|
|||||||
menuClass?: string;
|
menuClass?: string;
|
||||||
isCreatable?: boolean;
|
isCreatable?: boolean;
|
||||||
autoConvertOptions?: boolean; // to internal format (i.e. {value: T, label: string}[]), not working with groups
|
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
|
@observer
|
||||||
@ -76,7 +76,7 @@ export class Select extends React.Component<SelectProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@autobind()
|
@autobind()
|
||||||
onChange(value: SelectOption, meta: ActionMeta<OptionTypeBase>) {
|
onChange(value: SelectOption, meta: ActionMeta) {
|
||||||
if (this.props.onChange) {
|
if (this.props.onChange) {
|
||||||
this.props.onChange(value, meta);
|
this.props.onChange(value, meta);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user