github clauderic/dnd-kit @dnd-kit/dom@0.5.1

latest releases: @dnd-kit/collision@0.5.1, @dnd-kit/vue@0.5.1, @dnd-kit/geometry@0.5.1...
3 hours ago

Patch Changes

  • #2153 22a39ef Thanks @pedroapfilho! - The Accessibility plugin no longer sets aria-pressed on draggable activators whose role isn't button, such as role="tab", where the attribute isn't allowed.

  • #2094 d3f965f Thanks @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 69987d5 Thanks @ManiShah7! - Fix stale initialIndex and initialGroup on Sortable in onBeforeDragStart after the item has moved. Add an initializationPending getter to the drag operation status.

  • #2076 e00be08 Thanks @timagixe! - Avoid requiring ResizeObserver at import time when importing @dnd-kit/dom/modifiers in DOM-like test environments.

  • #2151 cf4fb8a Thanks @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 d5071ec Thanks @Bhavani2016! - Prevent body-targeted clicks following pointer drops from unexpectedly dismissing popups, while preserving iframe dragging.

  • #2126 8a1c807 Thanks @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 bce5778 Thanks @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 new retain option for rules that are inert outside of a drag, and only adds or removes the stylesheets whose target roots actually changed.

  • #2131 037663b Thanks @NektarTheo! - Respect transition: null in the React, Vue, Solid and Svelte sortable bindings. The bindings previously merged defaultSortableTransition before constructing or updating the core Sortable, which replaced an explicit null with the default transition, so sortable items kept animating. They now use the new resolveSortableTransition helper exported from @dnd-kit/dom/sortable, which preserves null while still merging partial transitions with the defaults.

  • #2134 3ff8588 Thanks @timagixe! - Preserve custom data types when narrowing with isSortable and isSortableOperation instead of widening them to any. 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

Don't miss a new dnd-kit release

NewReleases is sending notifications on new releases.