Skip to content

Commit f52d3a5

Browse files
author
刘欢
committed
feat: set autoClearSearchValue default value
1 parent ec0b918 commit f52d3a5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Select.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ const Select = React.forwardRef<BaseSelectRef, SelectProps<any, DefaultOptionTyp
238238
];
239239
const legacyShowSearch: SearchConfig<DefaultOptionType> = {};
240240
legacySearchProps.forEach((propsName) => {
241-
if (propsName === 'autoClearSearchValue') {
242-
legacyShowSearch[propsName] = props?.[propsName] ?? true;
243-
return;
244-
}
245241
legacyShowSearch[propsName] = props?.[propsName];
246242
});
247243
const mergedShowSearch = typeof showSearch === 'object' ? showSearch : legacyShowSearch;

0 commit comments

Comments
 (0)