Thanks Dimitar!
After some investigation, the dropTargetLeave event does work on my end. However, it is the css update that does not work upon the event firing.
In my scenario, I have a js array that is repesented as cells in a table. And expecting the cell to be represented with no border on dropTargetLeave
i.e.
$(‘#element’).bind(‘dropTargetLeave’,
function (event) {
$(event.args.target).css(‘border’, ‘0px’);
});
$(‘#element’).bind(‘dropTargetEnter’,
function (event) {
$(event.args.target).css(‘border’, ‘2px solid #000’);
});
The CSS update on dropTargetLeave event only takes effect on the last table cell. All other cells remain with thickened border.
Let me know if you need further details.
Thanks!