mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 18:08:24 +00:00
The handleDragEnd handlers in the Manage Fields dialog and Fields dropdown guarded reordering on source.id !== target.id. With dnd-kit react's OptimisticSortingPlugin (enabled by default), the drop target always resolves to the dragged item itself, so the guard was never true and the order API was never called. Detect moves via the sortable-specific index/initialIndex properties on the source instead, and reorder the rendered (grouped/search-filtered) subset before merging back into the full field list. All field groups are now reorderable in the dialog.