ng2-dragula
ng2-dragula copied to clipboard
UI gives duplicate item when data is provided by BehaviorSubject
REQUIRED: Before filing a usage question
Change each [ ]
to [x]
when you have done it.
- [x] My issue title starts with
[usage question]
- [x] I have read the README, especially the 'classic blunders' section
- [x] I have looked at the demos to see if my use case has obvious examples.
- [x] I have searched the
ng2-dragula
issues, including closed issues. - [x] I have browsed the issues labeled "future reference" for problems that have been solved before.
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
I'm having the same issue. Did you find a solution for it?
I am facing issue. Did you find any solution?