diff options
-rw-r--r-- | demos/droppable/shopping-cart.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/droppable/shopping-cart.html b/demos/droppable/shopping-cart.html index c57a61fe1..4cfd2e199 100644 --- a/demos/droppable/shopping-cart.html +++ b/demos/droppable/shopping-cart.html @@ -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"); + } }); }); |