Skip to content

Commit

Permalink
TabMenu route link matching fixed #11999
Browse files Browse the repository at this point in the history
  • Loading branch information
atheros committed Oct 2, 2022
1 parent f47610c commit 1e3cd64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/tabmenu/tabmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ export class TabMenu implements AfterContentInit,AfterViewInit,AfterViewChecked,
if (item.routerLink){
const routerLink = Array.isArray(item.routerLink) ? item.routerLink : [item.routerLink];

return this.router.isActive(this.router.createUrlTree(routerLink, {relativeTo: this.route}).toString(), false);
return this.router.isActive(this.router.createUrlTree(routerLink, {relativeTo: this.route}).toString(),
item.routerLinkActiveOptions?.exact ?? item.routerLinkActiveOptions ?? false);
}

return item === this.activeItem;
Expand Down

0 comments on commit 1e3cd64

Please sign in to comment.