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

function 'nzSelectChange' of the tabs component doesn't work under special circumstances. #4307

Open
zongchao-study opened this issue Oct 17, 2019 · 0 comments

Comments

@zongchao-study
Copy link

Reproduction link

https://stackblitz.com/github/zongchao-study/tabChangeTest

Steps to reproduce

As expected, the nzSelectChange function is triggered when a selected tab is switched. When you click to close a selected tab, if this tab is the last one, it will switch automatically after it is closed so that the previous tab is selected, and it will trigger the nzselectchange function, but if this tab is in the front position, it will not trigger the nzselectchange function. As example, when you click tab1 to close, and then tab2 was selected automatically. Theoretically speaking, selected tab was changed at that time and nzSelectChange function should be triggered , but it doesn't happen.

What is expected?

I think the nzselectchange function should occur after each tab is switched.

What is actually happening?

In certain cases, the nzselectchange function is not triggered as expected.

Environment Info
ng-zorro-antd 8.4.0
Browser firefox
@hsuanxyz hsuanxyz self-assigned this Oct 22, 2020
@hsuanxyz hsuanxyz added this to the v10.1.0 milestone Oct 22, 2020
@hsuanxyz hsuanxyz changed the title function 'nzSelectedIndexChange' of the tabs component doesn't work under special circumstances. function 'nzSelectChange' of the tabs component doesn't work under special circumstances. Oct 22, 2020
@hsuanxyz hsuanxyz modified the milestones: v10.1, v10.2 Oct 30, 2020
@HyperLife1119 HyperLife1119 removed this from the v12 milestone Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@vthinkxie @hsuanxyz @wenqi73 @HyperLife1119 @zongchao-study and others