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

UI gives duplicate item when data is provided by BehaviorSubject

Open Taylorsuk opened this issue 5 years ago • 3 comments

REQUIRED: Before filing a usage question

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

Use case description (required) When providing a nested array of data everything is working perfectly. However, when providing the EXACT SAME data structure via a BehaviorSubject subscription (async pipe) and drag the items in a particular way it results in the UI duplicating the item, however the model remains correct.

A clear and concise description of what you want to achieve. I hope to be able to throw nested data at this template and be able to manipulate it as the user sees fit.

Can you show a demo, or a picture of what you want to achieve? Steps to reproduce: Visit: https://stackblitz.com/edit/ng2-dragula-base-kzxgfm and click use static data and try dragging an item from one column to another. 2. Select the same 'named exercise' however a different one to the one that you dragged back to the original column. All should work as expected.

Then try to perform this using the dynamic data. See GIF below for an example of this behaviour.

Additional context

Dragula Example

Taylorsuk avatar Dec 29 '19 21:12 Taylorsuk

I'm having the same issue. Did you find a solution for it?

giovsteph avatar Jul 08 '22 01:07 giovsteph

I am facing issue. Did you find any solution?

kmanarvis avatar Oct 11 '22 16:10 kmanarvis