didn't found any related discussion on the trac, nor in web search.
The issue is :
if you remove an element "snappable" during a drag (with ui.draggable), it is still possible to snap to it, even if it has gone away.
if you drop, then drag again, it's ok because the element was removed BEFORE the drag init.
Expected behavior :
as the element is not there anymore, we should not be able to snap to its old place.
What happens ?
I know nothing about UI source code but I guess calculations for snapping are made before the 'start' event is fired ; so if we remove the snapping element in this callback, it's too late !
...and of course I'm not telling about if we try to remove elements while dragging.
Reproducible : always
Way to reproduce : http://jsfiddle.net/jmelis/vk3Xh/
More information on my environment :
- Firefox 10.0.5
- Linux 3.3.8/64bits on KDE 4.8.3
- jQuery 1.7.2, UI 1.8.21 (issue reproduce with 1.8.18 inside jsfiddle)
- I've also tried new UI version 1.8.22 => same issue
Btw, I'm pretty sure that the environment doesn't balance in here.