mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
fix: move filterOption to AbstractSelectProps so that AutoComplete component types do not break. (#5393)
This commit is contained in:
parent
36a7ffc0d6
commit
e968b575a2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user