anish2690 / vue-draggable-next

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

Nested v-model send update events too quickly #44

Closed Alviner closed 1 year ago

Alviner commented 1 year ago

when using v-model with dragging objects between vue layers, two update events are generated update:modelValue with addition in the new layer and removing in the old one, which leads to unsynchronization since the data does not have time to spread

It turned out to achieve the desired behavior by deleting the object in the next tick