Skip to content

Commit 9a7e305

Browse files
fix: remove click handler for the anchorlink when useRouter is true (#2912)
Co-authored-by: Akshat Patel <[email protected]>
1 parent f812d34 commit 9a7e305

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/ui-shell/sidenav/sidenav-item.component.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ import { Router } from "@angular/router";
3131
3232
<ng-template #sidenavItemRouterTpl>
3333
<a
34+
[attr.title]="title ? title : null"
3435
[routerLink]="route"
36+
[relativeTo]="routeExtras?.relativeTo"
37+
[queryParams]="routeExtras?.queryParams"
38+
[fragment]="routeExtras?.fragment"
39+
[queryParamsHandling]="routeExtras?.queryParamsHandling"
40+
[preserveFragment]="routeExtras?.preserveFragment"
41+
[skipLocationChange]="routeExtras?.skipLocationChange"
42+
[replaceUrl]="routeExtras?.replaceUrl"
43+
[state]="routeExtras?.state"
3544
routerLinkActive="cds--side-nav__item--active"
36-
(click)="navigate($event)"
3745
ariaCurrentWhenActive="page"
38-
[attr.title]="title ? title : null"
3946
class="cds--side-nav__link">
4047
<ng-template [ngTemplateOutlet]="sidenavItemContentTpl"></ng-template>
4148
</a>

0 commit comments

Comments
 (0)