kevcjones-archived / adapt-dragdrop

A work in progress, drag a drop component which falls back to a static diagram
GNU General Public License v3.0
3 stars 6 forks source link

dragdrop interferes with other dragdrops on the page #1

Open GavinNelson opened 9 years ago

GavinNelson commented 9 years ago

for example when a dragdrop is completed, setAllItemsEnabled(false) is called, this changes draggable options on $('.ui-draggable') which affects all elements on the page with a class of .ui-draggable, not just the ones in the current component. can be changed to this.$('.ui-draggable') to keep it scoped to current view.

I believe there are other parts of the code which are not scoped to the view as the above change hasn't completely fixed the issue. I'll add to this when I find them

KevinCJones commented 9 years ago

I see what you're saying, i'm not able to address this for a short while, i accept pull requests though should you fix yourself and want to send back - and thanks