Skip to content

Commit 08c5a12

Browse files
authored
fix(cdk/stepper): set focus origin when navigating with keyboard (#26239)
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.
1 parent e19addb commit 08c5a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
542542
this.selectedIndex = manager.activeItemIndex;
543543
event.preventDefault();
544544
} else {
545-
manager.onKeydown(event);
545+
manager.setFocusOrigin('keyboard').onKeydown(event);
546546
}
547547
}
548548

0 commit comments

Comments
 (0)