Patch Changes
-
e8ae539Thanks @clauderic! - Fix themoveandswaphelpers to support computed sortable IDs and optimistic sorting reconciliation for grouped records.When the ID-based lookup fails (e.g. when using computed IDs like
id={\sortable-${item.id}`}that don't match data items), the helpers now fall back to sortable index properties (initialIndex,index,group,initialGroup) to determine the correct positions. Additionally, grouped records now support optimistic sorting reconciliation—whensource.id === target.id` after optimistic sorting, the helpers use the sortable indices to determine the intended move.Added
initialIndex,group, andinitialGroupgetters toSortableDraggable, andindexandgroupgetters toSortableDroppable, so these properties are accessible from the operation'ssourceandtargetin drag events. -
Updated dependencies [
6a59647]:- @dnd-kit/abstract@0.3.0