ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

[bug report] copy, copySortSource, two way binding, phantom elements

Open farafonoff opened this issue 6 years ago • 6 comments
trafficstars

Change each [ ] to [x] when you have done it.

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:

  1. try adding two or more elements to list
  2. try dragging bottom element up
  3. see broken list.

https://ng2-dragula-base-txj2v1.stackblitz.io

Screenshots (optional) image

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.0
  • ng2-dragula: [2.1.1]

farafonoff avatar Dec 25 '18 13:12 farafonoff

+1. I am also seeing the same issue. When dragging and dropping elements backwards, the list is broken..

mgurnani avatar Jan 06 '19 06:01 mgurnani

Same problem here.

edoardoo avatar Jan 17 '19 22:01 edoardoo

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.)

cormacrelf avatar Feb 14 '19 02:02 cormacrelf

I have a similar issue. Sometimes it works perfectly, but dragging up sometimes creates a duplicate, sometimes items disappear.

philoxenberg avatar Sep 28 '20 14:09 philoxenberg

same problem here, any workarround?

murilo8812 avatar Oct 26 '20 18:10 murilo8812

Not that I have found

philostow1 avatar Oct 26 '20 19:10 philostow1