Upgrade jQuery UI to v.1.12.0, draggable and droppable are not function stable as with older jQuery version.
Hi,
I have an organization chart builder. After upgrade to jQuery 1.11.4, and jQuery UI 1.12.0. it doesn't drag and drop li and ul as stable as when I am using 1.7.2.
Maybe I need to change code to accommondate jQuery 1.11.4, and jQuery UI 1.12.0.
The code looks like below. Do I need to change the code?
$(".myOrgDiv li").draggable({
revert: "invalid",
containment: "document",
cursor: "move"
});
$(".myOrgDiv ul").droppable({
accept: "li,ul",
activeClass: "ui-state-highlight",
tolerance: "touch",
drop: function (event, ui) {
$(ui.draggable).detach().css({ top: 0, left: 0 }).appendTo(this);
}
});
Stephany