fix: move filterOption to AbstractSelectProps so that AutoComplete component types do not break. (#5393)

This commit is contained in:
Mitchell Demler 2017-03-20 21:13:53 +13:00 committed by Benjy Cui
parent 36a7ffc0d6
commit e968b575a2

View File

@ -19,6 +19,7 @@ export interface AbstractSelectProps {
disabled?: boolean; disabled?: boolean;
style?: React.CSSProperties; style?: React.CSSProperties;
placeholder?: string; placeholder?: string;
filterOption?: boolean | ((inputValue: string, option: Object) => any);
} }
export interface SelectProps extends AbstractSelectProps { export interface SelectProps extends AbstractSelectProps {
@ -26,7 +27,6 @@ export interface SelectProps extends AbstractSelectProps {
defaultValue?: SelectValue; defaultValue?: SelectValue;
combobox?: boolean; combobox?: boolean;
multiple?: boolean; multiple?: boolean;
filterOption?: boolean | ((inputValue: string, option: Object) => any);
tags?: boolean; tags?: boolean;
onSelect?: (value: SelectValue, option: Object) => any; onSelect?: (value: SelectValue, option: Object) => any;
onDeselect?: (value: SelectValue) => any; onDeselect?: (value: SelectValue) => any;