Skip to content

*ngFor on Android renders first item as last item (the rest are in proper order) #8878

Closed

Description

@crowmagnumb

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI:
  • Cross-platform modules:
  • Android Runtime:
  • iOS Runtime:
  • Plugin(s):
✔ Getting NativeScript components versions information...
✔ Component nativescript has 7.0.8 version and is up to date.
✔ Component @nativescript/core has 7.0.3 version and is up to date.
✔ Component @nativescript/ios has 7.0.0 version and is up to date.
✔ Component @nativescript/android has 7.0.0 version and is up to date.

Describe the bug

When rendering for example ...

items = ["1", "2", "3", "4"];
<Label *ngFor="let item of items" [text]="item"></Label>

It will render 2, then 3, then 4, then 1. But on Android only. Works fine on iOS.

To Reproduce

Expected behavior

Sample project

Additional context

Activity

  1. NathanWalker commented on Sep 21, 2020

    @NathanWalker
    Contributor

    @crowmagnumb what nativescript/angular version?

  2. crowmagnumb commented on Sep 21, 2020

    @crowmagnumb
    Author

    Ah, yes, didn't notice that tns info did not give that. Sorry. @nativescript/angular@10.1.4

  3. NathanWalker commented on Sep 21, 2020

    @NathanWalker
    Contributor

    Ok nice thanks - this pr may fix that NativeScript/nativescript-angular#2262 - bout to be merged and released.

  4. NathanWalker commented on Sep 21, 2020

    @NathanWalker
    Contributor

    @crowmagnumb 10.1.5 was just published, could you clean project and try with that when get a chance?

  5. crowmagnumb commented on Sep 21, 2020

    @crowmagnumb
    Author

    That did it!

  6. NathanWalker commented on Sep 22, 2020

    @NathanWalker
    Contributor

    Hooray! Thanks for confirming 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions