Skip to content

Commit

Permalink
sorter参数命名调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyf665 committed Sep 2, 2024
1 parent e55ec90 commit 8826c66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ const Select = React.forwardRef<BaseSelectRef, SelectProps<any, DefaultOptionTyp
mergedSearchValue,
mergedFieldNames,
]);
const sorter = (options: DefaultOptionType[]) => {
const sortedOptions = [...options].sort((a, b) =>
const sorter = (inputOptions: DefaultOptionType[]) => {
const sortedOptions = [...inputOptions].sort((a, b) =>
filterSort(a, b, { searchValue: mergedSearchValue }),
);
return sortedOptions.map((item) => {
Expand Down

0 comments on commit 8826c66

Please sign in to comment.