Make .sortable("refresh") update list of elements matching connectWith selector

Make .sortable("refresh") update list of elements matching connectWith selector


I'm building a widget that has 2 levels of sortables that lets a user
build a form. There are fieldsets and fields, and I'm trying to make
it so that you can sort the fieldsets and also sort the fields both
within the fieldset, and also moving between fieldsets (they're linked
using the connectWith option).
That's all built and working now, my issue is that I want to be able
to dynamically add new fieldsets (which is easy), but when I add a new
fieldset and do a .sortable('refresh'); on both sortables, it won't
allow me to move fields into the new fieldset. It seems to me that the
refresh command doesn't refresh the array of elements matching the
connectWith selector, and thus I can't use the new fieldset.
I've put a somewhat simplified demo up at: http://www.sfufilm.ca/sortables_test.html
Can some look through this to make sure it isn't just me, and if it is
a bug, can the .sortable("refresh"); command be updated so that it
also refreshes the elements matching the connectWith selector?
Thanks!