angular-ui/ui-sortable

Sorting doesn't work properly with jquery 3.1 and jquery-ui 1.12.1

watzak opened this issue · 10 comments

Hi

I have used your plugin with jquery 2.2.2 and jquery-ui v1.12.0!
It just worked perfect!

But after updating to jquery 3.1, the sorting doesn't work properly!

Please check out my demo site
https://jsbin.com/fifiwiruga/1/edit?html,js,output

screen

That's strange, since the examples in README work fine. EG: the simple sorting example. What versiuon of ui-sortable are you using? Can you try updating?

Also the jsbin example was not running at all for me.
screen shot 2017-02-13 at 11 57 26

Still can't drag anything.

Please update your ui-sortable version and avoid using ng-class on the ng-repeated element.
Please use the provided examples as a reference point.

Hello @thgreasi

I have now made changes as described!

  • newest sortable-ui version
  • removed ng-class

But it's still not working properly!
Please check out by yourself
=> https://jsbin.com/boqucaloka/1/edit?html,js,output

Switch one (1) with second (2) element and u will find 1 at the bottom :(

Thanx in advance

Is this working as expected?

no, unfortunately not ;)
Expected: If I switch one with second item, then second item would become first and first would become second
Right now I switch one with first: Second becomes first! Thats ok! But first becomes last item! That's not what I would excpect to behonest ;)

=> https://jsbin.com/boqucaloka/1/edit?html,js,output

ah now I clicked on your sample! Yes it looks good ;) I will check your sample => https://jsbin.com/suveqimuco/1/edit?html,js,output

Thanx in advance ;)

@thgreasi : Thanx a lot ;)

with track by $index it's just working ;)