Skip to content

Commit ee4351f

Browse files
committed
fix: template step should not cover other step
1 parent 17fb869 commit ee4351f

File tree

1 file changed

+2
-1
lines changed
  • packages/frontend/src/components/SortableList

1 file changed

+2
-1
lines changed

packages/frontend/src/components/SortableList/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
arrayMove,
2020
SortableContext,
2121
sortableKeyboardCoordinates,
22+
verticalListSortingStrategy,
2223
} from '@dnd-kit/sortable'
2324

2425
import { DragHandle, SortableItem, SortableOverlay } from './components'
@@ -77,7 +78,7 @@ export function SortableList<T extends BaseItem>({
7778
restrictToWindowEdges,
7879
]}
7980
>
80-
<SortableContext items={items}>
81+
<SortableContext items={items} strategy={verticalListSortingStrategy}>
8182
<ul className="SortableList" role="application">
8283
{items.map((item) => (
8384
<React.Fragment key={item.id}>

0 commit comments

Comments
 (0)