anish2690 / vue-draggable-next

Vue 3 drag-and-drop component
https://vue-draggable-next.vercel.app
MIT License
508 stars 45 forks source link

@Update not fired when moving item between sections #42

Open mfjonker opened 1 year ago

mfjonker commented 1 year ago

Please find attached a bug-report cq. feature request for vue-draggable-next:

Expected Result I expected to @update event to be fired when moving an item between sections. Currently, @update is only fired when moving an item within a section.

Actual Result Currently, @update is only fired when moving an item within a section. @end is the only event that contains the oldSection + oldIndex + newSection + newIndex information (since @change is fired twice when moving an item between sections).

Steps to reproduce issue I uploaded a testcase @ https://github.com/mfjonker/anish-draggable-test2

Visual Proof (screenshots, videos, text) I uploaded two gifs in the abovementioned repository: a. move-within-section.gif shows that @update is correctly fired when moving an item within a section b. move-between-sections.gif shows that @update is not fired when moving an item between sections (only @change and @end events are)