Skip to content

Commit

Permalink
fix(cdk/stepper): set focus origin when navigating with keyboard (#26239
Browse files Browse the repository at this point in the history
)

Fixes that we weren't setting the focus origin in the stepper when navigating with the keyboard, causing it to be inferred as programmatic focus.

Fixes #26210.
  • Loading branch information
crisbeto committed Dec 13, 2022
1 parent e19addb commit 08c5a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/stepper/stepper.ts
Expand Up @@ -542,7 +542,7 @@ export class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
this.selectedIndex = manager.activeItemIndex;
event.preventDefault();
} else {
manager.onKeydown(event);
manager.setFocusOrigin('keyboard').onKeydown(event);
}
}

Expand Down

0 comments on commit 08c5a12

Please sign in to comment.