IgxTabs: Dynamically adding a tab is not working properly #9820
Labels
🐛 bug
Any issue that describes a bug
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
If you dynamically add a tab which should be directly selected the tab content is displayed but the tab is not selected.
Steps to reproduce
click button to execute addTab()
Result
The content of the new tab is displayed but the tab doesn't get selected.
The
selectedIndex
of IgxTabs is set to -1;Expected result
The new tab should be selected and the
selectedIndex
should be correctly updated.Attachments
https://stackblitz.com/edit/angular-ivy-2wwec2
The text was updated successfully, but these errors were encountered: