Skip to content

Commit

Permalink
fix(table): DragSortTable --- Reorder columns by dragging and droppin…
Browse files Browse the repository at this point in the history
…g columns will have issues when the table has fixed columns first (ant-design#7936)

fix ant-design#7631
  • Loading branch information
tanjianyong committed Dec 6, 2023
1 parent 81249b3 commit 38a5cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table/src/components/ColumnSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const CheckboxList: React.FC<{
const targetIndex = newColumns.findIndex(
(columnKey) => columnKey === targetId,
);
const isDownWard = dropPosition > findIndex;
const isDownWard = dropPosition >= findIndex;
if (findIndex < 0) return;
const targetItem = newColumns[findIndex];
newColumns.splice(findIndex, 1);
Expand Down

0 comments on commit 38a5cbc

Please sign in to comment.