Patch Changes
-
#2153
22a39efThanks @pedroapfilho! - TheAccessibilityplugin no longer setsaria-pressedon draggable activators whose role isn'tbutton, such asrole="tab", where the attribute isn't allowed. -
#2094
d3f965fThanks @timagixe! - Match KeyboardSensor shortcuts against KeyboardEvent.key so keyboard controls respect keyboard layouts and operating system key remaps. Common legacy Key_ and Digit_ configs still normalize. -
#2149
69987d5Thanks @ManiShah7! - Fix staleinitialIndexandinitialGrouponSortableinonBeforeDragStartafter the item has moved. Add aninitializationPendinggetter to the drag operation status. -
#2076
e00be08Thanks @timagixe! - Avoid requiring ResizeObserver at import time when importing @dnd-kit/dom/modifiers in DOM-like test environments. -
#2151
cf4fb8aThanks @cpruijsen! - Record pointer moves received while a drag operation is initializing so the drag position catches up when the operation starts, instead of staying at the pointerdown position until the next pointer move. -
#2152
d5071ecThanks @Bhavani2016! - Prevent body-targeted clicks following pointer drops from unexpectedly dismissing popups, while preserving iframe dragging. -
#2126
8a1c807Thanks @waterWang! - Reuse each scroll container's position measurement during auto-scrolling to avoid duplicate layout reads while preserving the existing scroll utility argument order. -
#2142
bce5778Thanks @chasegiunta! - Keep the Feedback plugin's styles injected between drag operations instead of adding and removing its<style>element on every drag. Each stylesheet change forces the browser to recalculate styles for the whole document, which caused jank at the start and end of drags on large pages.StyleInjector.register()accepts a newretainoption for rules that are inert outside of a drag, and only adds or removes the stylesheets whose target roots actually changed. -
#2131
037663bThanks @NektarTheo! - Respecttransition: nullin the React, Vue, Solid and Svelte sortable bindings. The bindings previously mergeddefaultSortableTransitionbefore constructing or updating the coreSortable, which replaced an explicitnullwith the default transition, so sortable items kept animating. They now use the newresolveSortableTransitionhelper exported from@dnd-kit/dom/sortable, which preservesnullwhile still merging partial transitions with the defaults. -
#2134
3ff8588Thanks @timagixe! - Preserve custom data types when narrowing withisSortableandisSortableOperationinstead of widening them toany. Source and target data types are inferred independently for sortable operations. -
Updated dependencies [
69987d5]:- @dnd-kit/abstract@0.5.1
- @dnd-kit/collision@0.5.1
- @dnd-kit/geometry@0.5.1
- @dnd-kit/state@0.5.1