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

[BUG] [IMPORTANT] collection-repeat last changes are breaking-changes #2083

Closed
rbecheras opened this issue Aug 26, 2014 · 13 comments
Closed

Comments

@rbecheras
Copy link

I just update from beta.10 to beta.11 on my actual project.
I notice a breaking change on collection-repeat that I don't understand, and that is not documented on release notes : https://github.com/driftyco/ionic/releases/tag/v1.0.0-beta.11
This change is just annonced as feature : 7ddb57e

But it seems that there is a "shift-up" in the rendered items causing :

  • the first one is not rendered (top),
  • and the last one is empty (bottom).

Thus, for example if you sort your items by "date DESC":

  • the last is not rendered,
  • and the older is rendered with empty properties.

This causes also an issue by shifting the height (given by getHeight() implementation) of the elements that no longer match the correct elements. Then, sometimes an item start under the previous, somtimes an item stop and the folowing start some blanc pixel later.

So I think the following issue contain the mistake but this update is pretty huge, so I can't go forward (time, not pleasure ;-) )

I did downgrade to beta.10 for now to recover this issue.

@shiftynick
Copy link

I'm seeing the same thing.

@felquis
Copy link

felquis commented Aug 27, 2014

The same issue here, I spend about 10 hours debugging my code to find where I'm wrong, so I saw this issue and I regressed ionic to beta 10 and everything worked like a charm.

I can send prints if necessary

@shiftynick
Copy link

With more testing I actually will either see the above described behavior - OR - only the first element in the list. If I reload a page with a collection-repeat on it, I get each behavior about half of the time.

@Gelurban
Copy link

I'm having the same issue :(
First item in the collection is not rendered. Last item is a "ghost" item with no properties.

@rbecheras
Copy link
Author

Reviewing the sources file changes , intuitively, I focused on this changes, lines 260-264 of the old version, and 279-281 of the new one.
Maybe its not the issue at all, but it may be a clue for that who will work on this issue.
I left two line-comments into the change-diff :

@rbecheras rbecheras reopened this Aug 28, 2014
@rbecheras
Copy link
Author

Sorry closing the issue was not intentional at all. So I reopened it.

@mjason3
Copy link

mjason3 commented Aug 30, 2014

any updates on ghost item at last?

@rbecheras
Copy link
Author

Not yet.

@rbecheras rbecheras changed the title collection-repeat last changes are breaking-changes [BUG] [IMPORTANT] collection-repeat last changes are breaking-changes Aug 30, 2014
@rbecheras
Copy link
Author

It seems that beta-12 provide some fixes about collection-repeat, in particular this one : 9bfa3bd

If it's the case, this issue is a duplicate of this one: #1970
It was fixed, and the issue should be closed.

But I can't check if the issue is fixed at this time.
Is there someone to try to reproduce this issue with beta-12 and informe us about the result ?

@felquis
Copy link

felquis commented Sep 12, 2014

I can confirm this, beta 12 fixed this! :D (including other bugs not listed in this thread)

I think everything is working fine!

@adamdbradley
Copy link
Contributor

thanks for confirming it work!

@rbecheras
Copy link
Author

Thank you @felquis , @adamdbradley

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 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

6 participants