Skip to content
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

[Tabs] Select change event does not emit when tab is removed #3157

Open
rodolfojnn opened this issue Feb 17, 2017 · 2 comments
Open

[Tabs] Select change event does not emit when tab is removed #3157

rodolfojnn opened this issue Feb 17, 2017 · 2 comments
Labels
area: material/tabs P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects

Comments

@rodolfojnn
Copy link

rodolfojnn commented Feb 17, 2017

Bug, feature request, or proposal:

MdTabGroup not dispatch selectChange event on tab remove.
Note: Only if the selected tab is the last, the event is triggered. See plunker below.

What is the expected behavior?

SelectChange should be triggered on tab remove, see:

http://plnkr.co/edit/x35ZSWlBaPjFb9GAa4lQ?p=preview

What is the use-case or motivation for changing an existing behavior?

Track the change of selected tab

@andrewseguin andrewseguin added this to Untriaged Bugs in Tabs Oct 19, 2017
@andrewseguin andrewseguin changed the title MdTabGroup not dispatch selectChange event on tab remove Oct 19, 2017
@andrewseguin andrewseguin added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Oct 19, 2017
@andrewseguin andrewseguin moved this from Untriaged Bugs to Bugs in Tabs Oct 19, 2017
@molayodecker
Copy link

molayodecker commented Mar 14, 2019

This issue seems to have been rectified. Can this issue be closed? @andrewseguin

@walvekarnikhil
Copy link
Contributor

Here is StackBlitz for this issue
https://stackblitz.com/edit/angular-7bhsxy

When we close/remove the last tab, only then selectedTabChange get fired.

@andrewseguin andrewseguin removed their assignment Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/tabs P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
5 participants