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

In multiple lists, does not remove the previous "pull" item from data model #37

Open
ericjames opened this issue Sep 28, 2017 · 0 comments

Comments

@ericjames
Copy link

ericjames commented Sep 28, 2017

Your examples show moving between pre-existing DOM elements in multiple lists, but in Angular all DOM elements are generated via the data model.

When moving from one list to another, it succeeds moving the DOM item and the data item, BUT it does not remove it from the previous data list. The previous list reappears as if cloned. It doesn't appear to know to remove from the data model which would certainly be an Angular specific thing.

I had to plug into onRemove: and do a dirty check of the removed evt.model attribute (ie: id) from the actual scope variable.

$scope.manyLists = [[{id:1}],[{id:2}],[{id:3}]];

<my-dir items="manyLists[0]"></my-div>
<my-dir items="manyLists[1]"></my-div>
<my-dir items="manyLists[2]"></my-div>

Will this be solved by #36?

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

1 participant