ng2-dragula
ng2-dragula copied to clipboard
[bug report] copy, copySortSource, two way binding, phantom elements
Change each [ ] to [x] when you have done it.
- [x] My issue title starts with
[bug report] - [x] I have read the README, especially the 'classic blunders' section, and the dragula docs.
- [x] I have searched through the
ng2-dragulaissues for related problems, including closed issues. - [x] I have browsed through the issues labeled "future reference" for problems that have been solved before or have a known workaround.
- [x] I am using the latest version of
ng2-dragula.
Describe the bug (required)
create dragula group using options: { copy: true, accepts: true, copySortSource: true, copyItem: (item) => ({...item}) } and attach some array as ([dragulaModel])="this.list", with ngFor inside. To Reproduce (required)
Steps to reproduce the behavior:
- try adding two or more elements to list
- try dragging bottom element up
- see broken list.
https://ng2-dragula-base-txj2v1.stackblitz.io
Screenshots (optional)

If applicable, add screenshots to help explain your problem.
Versions (required)
Please state which versions of the following packages you have installed:
@angular/core: any: reproducible for 5.2.4 and 7.0.0ng2-dragula: [2.1.1]
+1. I am also seeing the same issue. When dragging and dropping elements backwards, the list is broken..
Same problem here.
I don’t know how to make copySortSource work. There is an example on the demos page that completely replicates its functionality, however. Just use that. (Edit: maybe not, but the feature has never worked, so it's nothing new.)
I have a similar issue. Sometimes it works perfectly, but dragging up sometimes creates a duplicate, sometimes items disappear.
same problem here, any workarround?
Not that I have found