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.

Support more elements inside the directive, not just ngRepeat #41

@romario333

Description

@romario333

Previous Title: "Empty item is inserted to array after reorder if there are non-sortable siblings"

If you setup ui-sortable to sort only some elements in the container (e.g. by configuring sortable with items: '> .sortable') and keep in sync with model via ng-model, there is a risk that new empty items will be inserted into the array.

Have a look at demo here. Grab the second item and put it before the first. The new empty item is created.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions