File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424 type DragEndEvent ,
2525} from "@dnd-kit/core" ;
2626import { SortableContext , useSortable , verticalListSortingStrategy } from "@dnd-kit/sortable" ;
27- import { restrictToParentElement , restrictToVerticalAxis } from "@dnd-kit/modifiers" ;
27+ import { restrictToFirstScrollableAncestor , restrictToVerticalAxis } from "@dnd-kit/modifiers" ;
2828import { CSS } from "@dnd-kit/utilities" ;
2929import {
3030 DEFAULT_MODEL_BY_PROVIDER ,
@@ -1320,7 +1320,7 @@ export default function Sidebar() {
13201320 < DndContext
13211321 sensors = { projectDnDSensors }
13221322 collisionDetection = { projectCollisionDetection }
1323- modifiers = { [ restrictToVerticalAxis , restrictToParentElement ] }
1323+ modifiers = { [ restrictToVerticalAxis , restrictToFirstScrollableAncestor ] }
13241324 onDragStart = { handleProjectDragStart }
13251325 onDragEnd = { handleProjectDragEnd }
13261326 onDragCancel = { handleProjectDragCancel }
You can’t perform that action at this time.
0 commit comments