Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

items configuration parameter is broken #98

@sagism

Description

@sagism

If you take the multiple lists example, and want to add a title to the lists, you'd normally exclude it from sorting using the items parameter: http://api.jqueryui.com/sortable/#option-items

However, this is not working.
If you do this: (I used both the css class and the ng-class, hoping at least one would work)

List {{$index}}
  <div class="app sortable" ng-class="sortable" ng-repeat="app in screen">{{$index}} {{app.title}}</div>
</div>

...

$scope.sortableOptions = {
placeholder: "app",
connectWith: ".apps-container",
items: "> .sortable"
};

image

See http://codepen.io/anon/pen/brgmk for an example which is based on the one provided here.

The title can be dragged (shouldn't), and if you drag around other items, after a while you end up with bogus items.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions