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

Support for AngularJS 1.2.0 (tested with 1.2.0-rc.3)

Open kfiil opened this issue 11 years ago • 5 comments

First of all, thanks for the cool script! We are in the process of upgrade our Angular app to 1.2 and having some problems with the script. Everything works as usual but when we sort between two lists the sorting item will be shown twice on the receiving list but is only in the model once. Do you have any ideas for what causes this behavior?

kfiil avatar Nov 05 '13 19:11 kfiil

Could you setup some jsfiddle or plunkr snippet with all the dependencies that cause the issue?

mostr avatar Nov 05 '13 21:11 mostr

Yes of cause, but accully it seems like the problems comes from angular-ui sortable, I spent a lot time trying to figure it out yesterday so all help is very welcome :smile:

Plunkr http://plnkr.co/edit/tiYWqxI3IsSYOhdTEuOH

kfiil avatar Nov 06 '13 06:11 kfiil

I also use your script and have had the same issue since 1.2.0-rc3. The new stable didn't fix it snif. The strange thing is I don't have any problem with angular-ui, only on multi-sortable.

ghost avatar Nov 12 '13 20:11 ghost

I hope to look at this compatibility issues some time soon.

mostr avatar Nov 13 '13 10:11 mostr

That would be cool, to be fair i believe the problem is the combination of jQuery UI and AngularJS 1.2.0 and not angular-ui-multi-sortable. The main problem is, that jQuery UI updates the DOM and then when we update the model using $modelValue Angular also updates the DOM. See https://github.com/angular-ui/ui-sortable/pull/48 and https://github.com/angular-ui/ui-sortable/issues/47

kfiil avatar Nov 17 '13 14:11 kfiil