kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
82 stars 22 forks source link

kirby-tab-navigation issue when adding/removing kirby-tab-navigation-item dynamicly #3420

Closed SimonCarlsen closed 3 months ago

SimonCarlsen commented 3 months ago

Describe the bug

Using async pipe to add/remove kirby-tab-navigation-item dynamicly will result in a selectedIndex with wrong value - trying to set i manually doesn't seam to work well.

Visually something goes wrong when applying *ngIf="someValue | async" to kirby-tab-navigation-item and you scroll the page!

Which Kirby version was used?

"@kirbydesign/designsystem": "^9.3.2",

Add any screenshots

image_720


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: