Closed kevinkopf closed 4 years ago
I now realize my proposal makes no sense, due to how it all structured. If there were a wrapper, which were to hold containers, then my proposal would have been possible to implement. But right now it's practically impossible, not without massive restructuring...
The only solution I see is to declare a separate "hidden" container, in which it would be impossible to drop in, and declare an onDrop
there.
We are using vue-smooth-dnd with 3 containers and countless numbers of draggables inside. After an element changes it's position, we need to save all the items in all containers.
Right now the last function is onDrop, which is fired n times for every container there is on page. Since we have 3 containers, it fires 3 times, whilst once would more than suffice.
A huge improvement would be a new function onDropFinish, which would fire only once after onDrop finishes running n times.