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

Item reordering returns an index of -100 if the item doesn't change order #7307

Closed
lbickston opened this issue Jul 14, 2016 · 1 comment
Closed
Assignees

Comments

@lbickston
Copy link

Short description of the problem:

If an item is minimally moved during a reorder such that it maintains its original ordering, indexes.to is set equal to -100 instead of the original index.

What behavior are you expecting?

indexes.to should be equal to the original index.

Plunker that shows an example of your issue

http://plnkr.co/edit/0UPVjYTvmL4kQOSt2xSI?p=preview

Which Ionic Version? 2.x

Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.30
Ionic App Lib Version: 2.0.0-beta.16
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.5.0
Xcode version: Xcode 7.3 Build version 7D175

@lbickston lbickston mentioned this issue Jul 14, 2016
4 tasks
@manucorporat manucorporat self-assigned this Jul 14, 2016
@manucorporat
Copy link
Contributor

@djangojack I can confirm this was already fixed here:
d993a1b#diff-4ad8cd6371a10686d79bd259ccef2897R60

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants