Skip to content

Commit

Permalink
fix: remove click handler for the anchorlink when useRouter is true (#…
Browse files Browse the repository at this point in the history
…2912)

Co-authored-by: Akshat Patel <[email protected]>
  • Loading branch information
klaascuvelier and Akshat55 authored Jun 13, 2024
1 parent f812d34 commit 9a7e305
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ui-shell/sidenav/sidenav-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ import { Router } from "@angular/router";
<ng-template #sidenavItemRouterTpl>
<a
[attr.title]="title ? title : null"
[routerLink]="route"
[relativeTo]="routeExtras?.relativeTo"
[queryParams]="routeExtras?.queryParams"
[fragment]="routeExtras?.fragment"
[queryParamsHandling]="routeExtras?.queryParamsHandling"
[preserveFragment]="routeExtras?.preserveFragment"
[skipLocationChange]="routeExtras?.skipLocationChange"
[replaceUrl]="routeExtras?.replaceUrl"
[state]="routeExtras?.state"
routerLinkActive="cds--side-nav__item--active"
(click)="navigate($event)"
ariaCurrentWhenActive="page"
[attr.title]="title ? title : null"
class="cds--side-nav__link">
<ng-template [ngTemplateOutlet]="sidenavItemContentTpl"></ng-template>
</a>
Expand Down

0 comments on commit 9a7e305

Please sign in to comment.