codef0rmer / angular-dragdrop

Implementing jQueryUI Drag and Drop functionality in AngularJS (with Animation) is easier than ever
http://codef0rmer.github.com/angular-dragdrop/#/
MIT License
1.78k stars 574 forks source link

Dropped item stays in drop position #311

Open ssjkkp opened 7 years ago

ssjkkp commented 7 years ago

I have a board with panels that have list-group-items generated with ng-repeat for each panel. Dragging and dropping from one panel to the other works fine but if I drag item from panel and drop it in the same panel the item drops and stays in the position it is dropped(not align with other items in panel) and starts the onDrop event.

Would you happen to know what causes this and how to fix it?

orolin commented 7 years ago

I am not sure, if I understand correctly your issue, but you can try my patch "revert item to the origin place if it is outside of dropped objects". You can find it in pull requests.

ssjkkp commented 7 years ago

At first I thought this didn't help but I just had to reboot IIS Express to get browser to show right version of the program. Thanks a lot. This did the trick!