When I drag an appropriate element, the appropriate droppables highlight as they should; but after the drop, the droppables where the element was *not* dropped remain highlighted (the activeClass is not removed from those elements).
Any ideas? My droppable code is as follows:
- $( ".droppable" ).droppable({
- accept: function(dragged){
- return canDrop(dragged.attr('id'),$(this).attr('id'));
- },
- activeClass: "ui-state-hover",
- hoverClass: "ui-state-active",
- drop: function(event, ui){
- doStuffWith(ui.draggable.attr('id'),$( this ).attr('id'));
- }
- });