From 9dfbb3fc3ffb197bece9217ce6e0f445cf7db6ad Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Mar 2010 22:08:04 +0200 Subject: [PATCH] Shopping-Cart demo: Fix the eager activeClass on sorting --- demos/droppable/shopping-cart.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 @@ $("
  • ").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"); + } }); }); -- 2.39.5