mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
update
This commit is contained in:
parent
c8d5243b97
commit
50f6b9c903
@ -143,13 +143,7 @@ class CheckboxGroup extends React.Component<CheckboxGroupProps, CheckboxGroupSta
|
||||
.sort((a, b) => {
|
||||
const indexA = options.findIndex(opt => opt.value === a);
|
||||
const indexB = options.findIndex(opt => opt.value === b);
|
||||
if (indexA > indexB) {
|
||||
return 1;
|
||||
}
|
||||
if (indexA < indexB) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
return indexA - indexB;
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user