Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Two-Way databinding failure when use ngRepeat and JQuery UI sortable #5254

Closed
why520crazy opened this issue Dec 4, 2013 · 3 comments
Closed
Assignees

Comments

@why520crazy
Copy link

we upgrade angular from 1.0.8 to 1.2.2 (we used JQuery UI sortable),when drag a item(e.g. item1) from entry(entry1) to other entry(entry2),we need to change the entry items in sortable options stop function ,when we push the item1 to entry2 and remove item1 from entry1,we found the item1 is lost(or other strange problem)

we found a solution that call ui.item.remove() in sortable stop function to resolve this issue, we guess that because of sortable plugin injection item to entry.
we are not sure whether this is a bug or have a better solution?

the demo adrress: http://why520crazy.github.io/w5c-validator-angular/demo/angular_sortable.html

@caitp
Copy link
Contributor

caitp commented Dec 4, 2013

Do you think you could reproduce this (minimally) on plnkr or jsbin?

And also perhaps describe the problem you're seeing further. What I am seeing in your demo is that the item is removed from the first repeater, but removed from the DOM or hidden when dropped in another area

@why520crazy
Copy link
Author

Hi, I reproduce this to plnkr, demo: http://plnkr.co/edit/11Yut8phAPHakuzQ5pxJ?p=preview
thx!

@ghost ghost assigned naomiblack Dec 4, 2013
@ghost ghost assigned tbosch Jan 4, 2014
@tbosch
Copy link
Contributor

tbosch commented Jan 4, 2014

Duplicate of #5619. Closing this. Please comment if you don't think so.

@tbosch tbosch closed this as completed Jan 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants