Skip to content
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

two elements sorting problem #23

Closed
despagito opened this issue Dec 14, 2016 · 2 comments
Closed

two elements sorting problem #23

despagito opened this issue Dec 14, 2016 · 2 comments

Comments

@despagito
Copy link

despagito commented Dec 14, 2016

When there're two elements,then after three times of exchanging, there will be a bug:

angular.min.js:103 Error: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.
    at Comment.<anonymous> (jquery-1.8.2.min.js:2)
    at init.domManip (jquery-1.8.2.min.js:2)
    at init.after (jquery-1.8.2.min.js:2)
    at Object.enter (angular.min.js:176)
    at Object.move (angular.min.js:176)
    at angular.min.js:235
    at Object.fn (angular.min.js:122)
    at l.$digest (angular.min.js:123)
    at l.$apply (angular.min.js:126)
    at Sortable.onEnd (ng-sortable.js:141)

and in the first of exchanging, the callback parameter evt return the wrong order in evt.models.

@samjacobclift
Copy link
Contributor

fixed please pull latest

@samjacobclift
Copy link
Contributor

reopen the issue if its not :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants