bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
22.01k stars 1.97k forks source link

copySortSource sorting behavior different than normal sort behavior #646

Closed clabough closed 4 years ago

clabough commented 4 years ago

When using copy: true, copySortSource: true, the sorting behavior is different than the standard sorting behavior.

A sample project is at https://stackblitz.com/edit/ng2-dragula-base-txs1ah?file=src%2Fapp%2Fapp.component.ts

Notice for the top group, where copy is set to true, when you grab an item, there are then 3 versions showing (mirror, transit, and original).

In the bottom group, where copy is not set to true, when you gran an item, there are only 2 versions showing (mirror, transit).

Is there a way to get the sorting behavior when using copySortSource: true to match the normal sorting behavior? This means that when over the source group, only mirror and transit show, but when over a target group, the original group shows the original and the target group shows the mirror and transit items?