primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Accordion with *ngIf directive - tabs in wrong order

Open machfalcon opened this issue 9 years ago • 0 comments

I'm submitting a ... (check one with "x")

[ X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) Issue demonstrated in the following plunkr: http://plnkr.co/edit/7pTsvI?p=preview

Current behavior Tabs with the *ngIf directive are incorrectly added to the end of the array of tabs in the Accordion component.

Expected behavior Tabs should be added in the same order as the template.

Minimal reproduction of the problem with instructions See plunkr: http://plnkr.co/edit/7pTsvI?p=preview

What is the motivation / use case for changing the behavior? Need to have some tabs be added in certain cases but removed in other cases based on user selections.

Please tell us about your environment: Windows 10

  • Angular version: 4.4.5
  • PrimeNG version: 4.2.2
  • Browser: only checked against Chrome Version 62.0.3202.89 (Official Build) (64-bit)

  • Language: TypeScript 2.4.2

  • Node (for AoT issues): node --version = 8.2.1

machfalcon avatar Nov 14 '17 17:11 machfalcon