Skip to content

Commit

Permalink
Fixed #16139 - Breadcrumb | tabindex property not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Aug 1, 2024
1 parent 5b1a944 commit 03f4523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/components/breadcrumb/breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
(click)="onClick($event, home)"
[target]="home.target"
[attr.title]="home.title"
[attr.tabindex]="home.disabled ? null : '0'"
[attr.tabindex]="home.disabled ? '-1' : home.tabindex || '0'"
[attr.ariaCurrentWhenActive]="isCurrentUrl(home)"
>
<span *ngIf="home.icon" class="p-menuitem-icon" [ngClass]="home.icon" [ngStyle]="home.iprivateyle"></span>
Expand All @@ -54,7 +54,7 @@ import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
(click)="onClick($event, home)"
[target]="home.target"
[attr.title]="home.title"
[attr.tabindex]="home.disabled ? '-1' : '0'"
[attr.tabindex]="home.disabled ? '-1' : home.tabindex || '0'"
[attr.ariaCurrentWhenActive]="isCurrentUrl(home)"
[fragment]="home.fragment"
[queryParamsHandling]="home.queryParamsHandling"
Expand Down Expand Up @@ -84,7 +84,7 @@ import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
(click)="onClick($event, item)"
[target]="item.target"
[attr.title]="item.title"
[attr.tabindex]="item.disabled ? null : '0'"
[attr.tabindex]="item.disabled ? '-1' : item.tabindex || '0'"
[attr.ariaCurrentWhenActive]="isCurrentUrl(item)"
>
<ng-container *ngIf="!itemTemplate">
Expand All @@ -108,7 +108,7 @@ import { BreadcrumbItemClickEvent } from './breadcrumb.interface';
(click)="onClick($event, item)"
[target]="item.target"
[attr.title]="item.title"
[attr.tabindex]="item.disabled ? null : '0'"
[attr.tabindex]="item.disabled ? '-1' : item.tabindex || '0'"
[fragment]="item.fragment"
[queryParamsHandling]="item.queryParamsHandling"
[preserveFragment]="item.preserveFragment"
Expand Down

0 comments on commit 03f4523

Please sign in to comment.