From 03f4523984fdd2b2f8d68fe00606a5e1c5f4a80b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Thu, 1 Aug 2024 10:36:05 +0300
Subject: [PATCH] Fixed #16139 - Breadcrumb | tabindex property not working
---
src/app/components/breadcrumb/breadcrumb.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/app/components/breadcrumb/breadcrumb.ts b/src/app/components/breadcrumb/breadcrumb.ts
index 1f4631c3049..8cb81ec370f 100755
--- a/src/app/components/breadcrumb/breadcrumb.ts
+++ b/src/app/components/breadcrumb/breadcrumb.ts
@@ -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)"
>
@@ -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"
@@ -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)"
>
@@ -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"