Skip to content

Commit 6cfae50

Browse files
committed
fix: disable layout animation in DnD sortable component
1 parent 87366b3 commit 6cfae50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/hocs/with-dnd-sortable/with-dnd-sortable.hoc.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export const WithDndSortable = forwardRef<HTMLDivElement, WithDndSortableProps>(
2727
const { attributes, listeners, setNodeRef, transform, transition, isDragging } =
2828
useSortable({
2929
id,
30-
disabled: isDragOverlay
30+
disabled: isDragOverlay,
31+
animateLayoutChanges: () => false
3132
})
3233

3334
const style: CSSProperties = {

0 commit comments

Comments
 (0)