-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why does parent sortable drop and drag,child sortable can't drop and drag with angular #331
Comments
Try dev-branch and use only |
thanks a lot |
This seems to still have a bug, if you have more than 2 child items they can't be reordered properly: http://jsbin.com/qudizihodo/2/edit?html,output All of the children objects always have an From my initial investigation it looks like _index(el) is returning the parent's draggable index. |
http://jsbin.com/qudizihodo/2/edit?html,output — example does not work. |
Sorry about that, can you try this example: http://jsbin.com/denozivupe/1/edit?html,output Try to reorder Item 5 in group A and you should see the issue. |
in this case,_onTapStart() function was fired 2 times, firsrt time is child scope and second is parrent scope, so oldIndex was set parrent index. so, i added evt.stopPropagation(); at the end of this function, it works. hope fixed this issue for next version :) |
I can confirm that @tplaner 's solution works great. |
@tplaner Thanks Tom, you saved us time as well! |
Dear all! ng-sortable.js is moved to the separate repository. If this issue is still actual, please create it there once again and this rojects needs a maintainer: |
why does parent sortable can drop and drag,child sortable can't drop and drag with angular,when the scope data changed ,without ng-sortable.js . clike the change button, parent sortable can drop and drag,but child sortable can't drop and drag.
code like this :
http://jsbin.com/kalojosuka/1/edit?html,css,js,output
The text was updated successfully, but these errors were encountered: