I have an example here: https://stackblitz.com/edit/solidjs-templates-uekvqb If you drag around the row with the '0' ID then a gap is not made for it in the list. You can drop the item OK.
Activity
martinpengellyphillips commentedon Jul 23, 2024
Thanks for the report and reproduction. I'll take a look.
martinpengellyphillips commentedon Jul 23, 2024
From a quick look I imagine it is caused by this naive check here:
solid-dnd/src/sortable-context.tsx
Line 44 in 809014f
I'll fix that to be stricter (and avoid treating a
0as a false evaluation).floratmin commentedon Oct 28, 2024
Yes this fix works.