ui-sortable icon indicating copy to clipboard operation
ui-sortable copied to clipboard

Using ui-sortable with an ng-repeat that is filtered - drag and drop doesn't work.

Open shawngong opened this issue 10 years ago • 1 comments

I created two fiddles to showcase the issue.

The first, uses no filter - and drag and drop works as intended.

http://jsfiddle.net/Lvc0u55v/2887/

The second uses a filter - and the drag and drop does not work (the items just go back).

http://jsfiddle.net/Lvc0u55v/2886/

Removing the ng-model will cause the filter drag and drop to work as intended, but I am not sure if this is a bug or intended behaviour?

shawngong avatar Apr 22 '16 15:04 shawngong

As noted in README, you have to move the filtering in the controller, otherwise the element matching with the model items breaks. Take a look at the filtering examples found in README.

Thodoris Greasidis Computer, Networking & Communications Engineer

thgreasi avatar Apr 22 '16 15:04 thgreasi