Skip to content

Commit c0cbc6a

Browse files
committed
fix
1 parent 113ac77 commit c0cbc6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aria/private/behaviors/list-focus/list-focus.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ export class ListFocus<T extends ListFocusItem> {
8484

8585
/** The tab index for the list. */
8686
getListTabIndex(): -1 | 0 {
87-
if (this.isListDisabled()) {
87+
if (this.isListDisabledFocusable()) {
8888
return 0;
8989
}
9090
return this.inputs.focusMode() === 'activedescendant' ? 0 : -1;
9191
}
9292

9393
/** Returns the tab index for the given item. */
9494
getItemTabIndex(item: T): -1 | 0 {
95-
if (this.isListDisabled()) {
95+
if (this.isListDisabledFocusable()) {
9696
return -1;
9797
}
9898
if (this.inputs.focusMode() === 'activedescendant') {

0 commit comments

Comments
 (0)