-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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标签页 删除标签页后设置 nzSelectedIndex 失效 #3519
Comments
Translation of this issue: Tabs Tab Set nzSelectedIndex to expire after deleting the tabReproduction linkhttps://stackblitz.com/edit/angular-fjn1aj Steps to reproduceClick Tab5 and delete Tab4 What is expected?Tabs switch to the last one What is actually happening?Unchanged
|
看了你的 demo ,在 closeTab 方法中,你有对 index 重新赋值,造成了 tabs 切换至最后一个。@tomatoKnightJ |
需求就是关闭当前tab切换至最后一个tab,这个没问题,问题点在于不能每次正确指向最后一个tab; |
ok |
Any other questions are welcome to open a new issue. |
Reproduction link
https://stackblitz.com/edit/angular-fjn1aj
Steps to reproduce
点击 Tab5 然后删除 Tab4
What is expected?
tabs切换至最后一个
What is actually happening?
未改变
The text was updated successfully, but these errors were encountered: