@@ -58,7 +58,7 @@ import { fillFieldNames, flattenOptions, injectPropsWithOption } from './utils/v
58
58
import warningProps , { warningNullOptions } from './utils/warningPropsUtil' ;
59
59
import useSearchConfig from './hooks/useSearchConfig' ;
60
60
61
- const OMIT_DOM_PROPS = [ 'inputValue' , 'filterOption' , 'optionFilterProp' , 'filterSort' ] ;
61
+ const OMIT_DOM_PROPS = [ 'inputValue' ] ;
62
62
63
63
export type OnActiveValue = (
64
64
active : RawValueType ,
@@ -195,6 +195,13 @@ const Select = React.forwardRef<BaseSelectRef, SelectProps<any, DefaultOptionTyp
195
195
fieldNames,
196
196
// Search
197
197
showSearch,
198
+ searchValue : legacySearchValue ,
199
+ onSearch : legacyOnSearch ,
200
+ autoClearSearchValue : legacyAutoClearSearchValue ,
201
+ filterOption : legacyFilterOption ,
202
+ optionFilterProp : legacyOptionFilterProp ,
203
+ filterSort : legacyFilterSort ,
204
+
198
205
// Select
199
206
onSelect,
200
207
onDeselect,
@@ -223,7 +230,15 @@ const Select = React.forwardRef<BaseSelectRef, SelectProps<any, DefaultOptionTyp
223
230
...restProps
224
231
} = props ;
225
232
226
- const [ mergedShowSearch , searchConfig ] = useSearchConfig ( showSearch , props ) ;
233
+ const searchProps = {
234
+ searchValue : legacySearchValue ,
235
+ onSearch : legacyOnSearch ,
236
+ autoClearSearchValue : legacyAutoClearSearchValue ,
237
+ filterOption : legacyFilterOption ,
238
+ optionFilterProp : legacyOptionFilterProp ,
239
+ filterSort : legacyFilterSort ,
240
+ } ;
241
+ const [ mergedShowSearch , searchConfig ] = useSearchConfig ( showSearch , searchProps ) ;
227
242
const {
228
243
filterOption,
229
244
searchValue,
0 commit comments