connectToSortable not passing helper, but originating element

connectToSortable not passing helper, but originating element

I am trying to use connectToSortable on draggable that has helper defined by function. The sortable keeps recieving the originating function instead of the helper.

  1. $(this).draggable({
  2. connectToSortable: '#swe-paper',
  3. helper: function() {
  4. return $(this).clone().removeAttr("id").addClass( "swe-sign-in-move" );
  5. },
  6. });

This works well the helper has the id removed and added the class. The sortable has the originating element, which I can't manage to change. Bug?