Patch Changes
-
#1658
4682570
Thanks @github-actions! - Fix handling of aborted drag operations across sensors. Thestart
method now returns a boolean to indicate whether the operation was aborted, allowing sensors to properly clean up when a drag operation is prevented. This affects the Keyboard and Pointer sensors, ensuring they properly handle cases wherebeforeDragStart
events are prevented. -
#1658
f8d69b0
Thanks @github-actions! - Allowactions.start()
to optionally receive asource
as input. -
#1658
ee55f58
Thanks @github-actions! - Refactor the drag operation system to improve code organization and maintainability:- Split
dragOperation.ts
into multiple focused files:operation.ts
- Core drag operation logicstatus.ts
- Status managementactions.ts
- Drag actions
- Update imports and exports to reflect new file structure
- Improve type definitions and exports
- Split
-
#1660
374f81f
Thanks @GuillaumeSalles! - Add optionshouldActivate
onKeyboardSensor
. By defaultKeyboardSensor
activates if the Keyboard event is triggered from theDraggable
element
orhandle
.shouldActivate
let the user override this behavior. -
Updated dependencies [
ee55f58
,4682570
,f8d69b0
,d04e9a2
,ee55f58
]:- @dnd-kit/state@0.1.2
- @dnd-kit/geometry@0.1.2
- @dnd-kit/abstract@0.1.2
- @dnd-kit/collision@0.1.2