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