Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(ui): drag and drop not working for sortable hasMany fields (#15845)
### What Fixes drag-and-drop sorting for relationship and select fields with `hasMany` and `admin.isSortable: true`. ### Why In v3.78.0, commit 418bb928ae replaced `PointerSensor` with `MouseSensor` + `TouchSensor`. The `MultiValue` component was overriding the `onMouseDown` handler from `listeners`, preventing the `MouseSensor` from detecting drag start events. ### How Extract `onMouseDown` from `listeners` and call it explicitly before the custom `stopPropagation` logic. Touch and keyboard handlers remain unaffected. Fixes #15843
P
Patrik committed
2c7ef3f84f5e38b2a5a6203ba2fd8afa7722528c
Parent: 74799ea
Committed by GitHub <noreply@github.com>
on 3/4/2026, 5:58:08 PM