diff --git a/demos/droppable/shopping-cart.html b/demos/droppable/shopping-cart.html index c57a61fe14..4cfd2e199c 100644 --- a/demos/droppable/shopping-cart.html +++ b/demos/droppable/shopping-cart.html @@ -36,7 +36,12 @@ $("
  • ").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"); + } }); });