Skip to content

*ngIf appends Span element in the end #65

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

Closed
lekhmanrus opened this issue May 4, 2022 · 0 comments · Fixed by #104
Closed

*ngIf appends Span element in the end #65

lekhmanrus opened this issue May 4, 2022 · 0 comments · Fixed by #104

Comments

@lekhmanrus
Copy link
Contributor

lekhmanrus commented May 4, 2022

Environment

  • CLI: 8.2.2
  • Cross-platform modules: 8.2.4-alpha.2
  • Android Runtime: 8.2.2
  • iOS Runtime: 8.2.4-alpha.1
  • Plugin(s):
  • NativeScript-Angular: 13.0.4-alpha.1
  • Angular: 14.0.0-next.13

Describe the bug
*ngIf appends an element to the end and ignores its actual location in the node tree.

To Reproduce

<Label textWrap="true">
  <Span *ngIf="true" text="1"></Span>
  <Span text="2"></Span>
</Label>

Expected behavior
Renders as:

<Label textWrap="true">
  <Span text="1"></Span>
  <Span text="2"></Span>
</Label>

Actual behavior
Currently rendering to:

<Label textWrap="true">
  <Span text="2"></Span>
  <Span text="1"></Span>
</Label>
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

Successfully merging a pull request may close this issue.

1 participant