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

Draggable only works once #58

Closed
MBing opened this issue Oct 29, 2014 · 1 comment
Closed

Draggable only works once #58

MBing opened this issue Oct 29, 2014 · 1 comment

Comments

@MBing
Copy link
Contributor

MBing commented Oct 29, 2014

In this plunkr when you try to drag the items on the right. You can see it is working fine,
but when you try again, it doesn't change anymore.
http://plnkr.co/edit/6s03Gq

So basically when you drag 'subitem 0_0' below 'subitem 0_1' it will work fine,
But then when you try to drag it up again to its original position, 'subitem 0_1' will stay on top.
(It's the same when you first drag 'subitem 0_1' up and try to drag it down again.)

N.B.There is another issue in this plunkr, but I will address that in another issue. #59

@MBing
Copy link
Contributor Author

MBing commented Oct 29, 2014

Same solution as in #59
I changed ng-repeat="subItem in currentMainItem.subItems track by $index" to
ng-repeat="subItem in currentMainItem.subItems"

and it all worked fluently!
So closing this and plunker is updated.

@MBing MBing closed this as completed Oct 29, 2014
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