Skip to content

Commit 8826c66

Browse files
committed
sorter参数命名调整
1 parent e55ec90 commit 8826c66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ const Select = React.forwardRef<BaseSelectRef, SelectProps<any, DefaultOptionTyp
431431
mergedSearchValue,
432432
mergedFieldNames,
433433
]);
434-
const sorter = (options: DefaultOptionType[]) => {
435-
const sortedOptions = [...options].sort((a, b) =>
434+
const sorter = (inputOptions: DefaultOptionType[]) => {
435+
const sortedOptions = [...inputOptions].sort((a, b) =>
436436
filterSort(a, b, { searchValue: mergedSearchValue }),
437437
);
438438
return sortedOptions.map((item) => {

0 commit comments

Comments
 (0)