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

Dropping order issue

Open mirzaabdulhccpu opened this issue 5 years ago • 8 comments

Describe the bug (required)

Drop order issue. The sequence in which items are dropped is lost. It is occurring to me in two different ways at two different places. At one place it starts occurring after I drop 3rd item in dragula. At other place it starts occurring after I drop 4th item in dragula. This is very strange. I mean after 2/3 items have been dropped it starts adding item in its own order

To Reproduce (required)

Steps to reproduce the behavior:

  1. drop one item
  2. drop an other item
  3. drop 3rd item
  4. drop 4th item

the 4th item will dropped but the order will be as following

Item 1 Item 2 Item 4 Item 3

And if I drop 5th item following is the order.

Item 1 Item 2 Item 5 Item 4 Item 3

Versions (required) "ng2-dragula": "^1.5.0",

Please state which versions of the following packages you have installed:

  • `"@angular/core": "^6.1.10",

Browsers affected (optional)

On Firefox and chrome both

mirzaabdulhccpu avatar Jul 23 '19 12:07 mirzaabdulhccpu

Any idea that can help in resolving this issue will be highly appreciated. Thanks

mirzaabdulhccpu avatar Jul 23 '19 12:07 mirzaabdulhccpu

Code_Piece

mirzaabdulhccpu avatar Jul 23 '19 12:07 mirzaabdulhccpu

The above attached is the piece of code. please let me know if anything else is required. Thanks.

mirzaabdulhccpu avatar Jul 23 '19 12:07 mirzaabdulhccpu

Sorry, would need a Stackblitz exhibiting the behaviour to work out if this is a bug or not.

cormacrelf avatar Aug 22 '19 00:08 cormacrelf

The same issue on 2.1.1. dragulaModelChange after 2-3 changes emits wrong order.

dbojarski avatar Sep 09 '19 10:09 dbojarski

Up

mllrdev-miguelsobong avatar Oct 17 '19 06:10 mllrdev-miguelsobong

Up

blaise-favor avatar Oct 17 '19 06:10 blaise-favor

Hello, im kinda experiencing the same issue here is short video Stackblitz

armory09 avatar Aug 26 '22 00:08 armory09