Skip to content

Tab container itemSelect event should pass selected tab index in the event #1196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sunnyyadav100 opened this issue Feb 9, 2020 · 0 comments · Fixed by #1202
Closed

Tab container itemSelect event should pass selected tab index in the event #1196

sunnyyadav100 opened this issue Feb 9, 2020 · 0 comments · Fixed by #1202

Comments

@sunnyyadav100
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

As a developer, I need to know the selected tab index for further business requirements. Presently itemSelect event doesn't pass the information about selected tab index. Developer need to calculate selected index again. This can be avoided if TabContainer can emit selectedTabIndex which is already being calculated.

item: currentSelectedTab,

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

ilhan007 added a commit that referenced this issue Feb 11, 2020
The tab index is provided as event details and don't have to be calculated by users, that otherwise have to consider the tab separators, which can be a little cumbersome.

FIXES: #1196

BREAKING CHANGE: `itemSelect` is renamed to `tabSelect` and the `item` event param is renamed to `tab`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants