If slotted tab-navigation-items change, we update selected and focussed tabs accordingly.
This allows users to set new values for selectedIndex and focusIndex when adding or removing items, so the template and logic stays in sync.
Does this PR introduce a breaking change?
[ ] Yes
[x] No
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
[ ] Make sure you have implemented tests following the guidelines in: "The good: Test".
[ ] Make sure you have updated the cookbook with examples and showcases (for bug fixes, enhancements & new components).
Review
[ ] Determine if your changes are a fix, feature or breaking-change, and add the matching label to your PR. If it is tooling, dependency updates or similar, add ignore-for-release.
This PR closes #3420
What is the new behavior?
If slotted tab-navigation-items change, we update selected and focussed tabs accordingly. This allows users to set new values for selectedIndex and focusIndex when adding or removing items, so the template and logic stays in sync.
Does this PR introduce a breaking change?
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
Review
When the pull request has been approved it will be merged to
develop
by Team Kirby.