ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

duplicate dom elements when using multiple lists

Open willrax opened this issue 8 years ago • 3 comments

Hi. Been noticing that with multiple lists on a page that dom elements can be duplicating.

Using this demo:

http://mharris717.github.io/ember-drag-drop/#/sort

dragging an object from the left and placing it over the top of another object will duplicate the object from the right list to the left list and you'll have two of the same elements. (attached screen shot)

Any ideas on what could be happening?

screen shot 2016-07-18 at 10 09 52

willrax avatar Jul 18 '16 09:07 willrax

After messing around a bit, I was able to stop this from happening by making enableSort false on other the lists that aren't being sorted and keeping it true on the list that I am sorting.

willrax avatar Jul 18 '16 09:07 willrax

Just merged into master some code that actually enables dragging of elements from one list to another. I'll tag and push it soon, after I can update some demos, then maybe you can test it again to see if it's still an issue for you.

dgavey avatar Aug 10 '16 03:08 dgavey

great, thank you very much @dgavey :)

willrax avatar Aug 10 '16 07:08 willrax