diff --git a/website/src/components/Sortable/Sortable.tsx b/website/src/components/Sortable/Sortable.tsx index 48c2916b..f77f9dd2 100644 --- a/website/src/components/Sortable/Sortable.tsx +++ b/website/src/components/Sortable/Sortable.tsx @@ -9,7 +9,7 @@ import { useSensors, } from "@dnd-kit/core"; import type { DragEndEvent } from "@dnd-kit/core/dist/types/events"; -import { restrictToVerticalAxis } from "@dnd-kit/modifiers"; +import { restrictToParentElement, restrictToVerticalAxis } from "@dnd-kit/modifiers"; import { arrayMove, SortableContext, @@ -60,7 +60,7 @@ export const Sortable = (props: SortableProps) => { sensors={sensors} collisionDetection={closestCenter} onDragEnd={handleDragEnd} - modifiers={[restrictToVerticalAxis]} + modifiers={[restrictToParentElement, restrictToVerticalAxis]} >