ix-tab "select" logic not working #1655
Labels
Contribution welcome 👨💻
This issue is open for contributions from the community
type: bug
Something isn't working
Workflow: Issue created
JIRA issue is created and will be analyzed
Prerequisites
What happened?
In our application we have a guard which decides if we can switch the application or stay on that site, whether there are unsaved changes.
When we click on a ix-tab-item we have a function, like in the example, but have a check for pending changes before we set the selectedTab.
However we can see that we do not set the selectedTab parameter, but still the new tab is selected and displayed as active.
We have tried the other approaches like "tabClick" or "click", "selected" on ix-tab-item and "selectedChange" function. But the outcome is the same.
In the code example you can see that the content stays on index=1 but the wrong tab is selected.
What type of frontend framework are you seeing the problem on?
Angular
Which version of iX do you use?
v2.6.1
Code to produce this issue.
https://stackblitz.com/edit/gr28jqt2?file=src%2Ftabs.ts
The text was updated successfully, but these errors were encountered: