outl1ne / nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag & drop.
MIT License
283 stars 120 forks source link

Drag-and-Drop to sort / reorder rows in a Nova does NOT auto-update or refresh the sort order values #178

Open connecteev opened 1 year ago

connecteev commented 1 year ago

Unlike using the "Move to Top" or "Move to End" buttons which auto-refresh the resource list (and reflect the updated sort order after the sorting is done), using Drag-and-Drop to sort / reorder rows in a Nova resource does NOT auto-update or refresh the sort order values. The page has to be manually refreshed.

Video demos of both:

  1. Move to Start or End (refresh happens - though there is a different bug where the order values are incorrect): https://github.com/outl1ne/nova-sortable/assets/64816/563b4c65-a06c-48fd-9d08-94dad7668707

  2. Drag and Drop (buggy - does NOT refresh order values): https://github.com/outl1ne/nova-sortable/assets/64816/35e300e7-bea5-46ec-bf86-3c5f06f38454

note: might also be what this bug was trying to point out.

IcedElect commented 1 year ago

+1

september-evgeny commented 1 year ago

pls fix