Skip to content

Commit 1d07821

Browse files
authored
fix: cell translating on reorder (#58)
Closes #56.
1 parent 2d0f516 commit 1d07821

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/ReorderableListCore.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,8 @@ const ReorderableListCore = <T,>(
481481
const reorder = (fromIndex: number, toIndex: number) => {
482482
runOnUI(resetSharedValues)();
483483

484-
markCells(fromIndex, toIndex);
485-
486484
if (fromIndex !== toIndex) {
485+
markCells(fromIndex, toIndex);
487486
onReorder({from: fromIndex, to: toIndex});
488487
}
489488
};

0 commit comments

Comments
 (0)