Skip to content

Commit 0262348

Browse files
committed
Fix vertical axis drag for list select values
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
1 parent 5787388 commit 0262348

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/js/dfv/src/fields/pick/list-select-values.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import {
1111
useSensor,
1212
useSensors,
1313
} from '@dnd-kit/core';
14-
import { restrictToParentElement } from '@dnd-kit/modifiers';
14+
import {
15+
restrictToParentElement,
16+
restrictToVerticalAxis,
17+
} from '@dnd-kit/modifiers';
1518
import {
1619
arrayMove,
1720
SortableContext,
@@ -142,6 +145,7 @@ const ListSelectValues = ( {
142145
onDragCancel={ handleDragCancel }
143146
modifiers={ [
144147
restrictToParentElement,
148+
restrictToVerticalAxis,
145149
] }
146150
>
147151
<SortableContext

0 commit comments

Comments
 (0)