mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Shopping-Cart demo: Fix the eager activeClass on sorting
This commit is contained in:
@@ -36,7 +36,12 @@
|
||||
$("<li></li>").text(ui.draggable.text()).appendTo(this);
|
||||
}
|
||||
}).sortable({
|
||||
items: "li:not(.placeholder)"
|
||||
items: "li:not(.placeholder)",
|
||||
sort: function() {
|
||||
// gets added unintentionally by droppable interacting with sortable
|
||||
// using connectWithSortable fixes this, but doesn't allow you to customize active/hoverClass options
|
||||
$(this).removeClass("ui-state-default");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user