-
Notifications
You must be signed in to change notification settings - Fork 4k
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 - no tab should be active if actual route does not match #3873
Comments
@ajeiie120120 Tabs component does not support cc @vthinkxie We need to define the behaviour before making actual fixes. |
Any news about the fix? |
@wendzhue try nzHideAll |
[PARTIALLY SOLVED] Hi, But it seems that the first tab is not "smart" as the others and cant detect if current route has changed, so it does not react correctly. You can try this example https://stackblitz.com/edit/angular-mtudaw:
Same with the "5" tab:
But with other tabs this will not happen:
or
Thanks a lot quick support, |
@ajeiie120120 Hi. Thank you for these issues. We have fixed the problem. Please verify it in the next version. |
@wendzhue thanks for the update, it works fine now. The issue can be closed, great work! |
Reproduction link
https://stackblitz.com/edit/angular-2twhgl
Steps to reproduce
Just append "/5" in the url, the page will be correctly reloaded but the tab "1" will be active even if the "/5" does not match any of the actual tabs links.
What is expected?
Expected no tab active if the actual route does not match any of the tabs defined links through [routerLink] directive
What is actually happening?
The first tab is active by default even if its routerLink is not matching with the actual route
The text was updated successfully, but these errors were encountered: