You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: