fix: sortable dnd twitching fix
This commit is contained in:
@ -120,7 +120,6 @@ const SortableDnd = <T extends BaseItem>({
|
||||
key={index}
|
||||
onClick={e => {
|
||||
if (!onItemClick) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
onItemClick(item);
|
||||
}}>
|
||||
|
||||
@ -27,7 +27,7 @@ const SortableItem = ({
|
||||
setActivatorNodeRef,
|
||||
transform,
|
||||
transition,
|
||||
} = useSortable({ id, disabled });
|
||||
} = useSortable({ id, disabled, animateLayoutChanges: () => false });
|
||||
|
||||
const context = useMemo(
|
||||
() => ({
|
||||
|
||||
Reference in New Issue
Block a user