Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 685ba7a

Browse files
committed
codelab: control focus with FocusTrap
1 parent c02a4ee commit 685ba7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shop/color-picker/color-picker-dialog/color-picker-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-->
1616
<div mat-dialog-content>
1717
<!-- TODO: #10. Control focus with FocusTrap -->
18-
<mat-selection-list #colors aria-label="Dumpling wrapper color" multiple="false">
18+
<mat-selection-list #colors aria-label="Dumpling wrapper color" multiple="false" cdkFocusInitial>
1919
<mat-list-option *ngFor="let paint of defaultColors" [value]="paint" color="primary">
2020
<div class="color-option">
2121
<div class="circle" [ngStyle]="{'background': paint}"></div>

0 commit comments

Comments
 (0)