Skip to content

Commit

Permalink
feat(select): add focustrap to options container
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickjahr committed Apr 16, 2024
1 parent 311194c commit db594bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/sketch/src/lib/components/select/select.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
(keydown.enter)="togglePanel(!this.panelIsVisible())"
>
@if (showPlaceholder()) {
<ng-content select="[skSelectPlaceholder]"></ng-content>
<ng-content select="[skSelectPlaceholder]"></ng-content>
} @else {
<ng-content select="[skSelectLabel]"></ng-content>
<ng-content select="[skSelectLabel]"></ng-content>
}
</div>

<ng-template cdkPortal #overlay="cdkPortal">
<ng-content></ng-content>
<ng-container cdkTrapFocus>
<ng-content></ng-content>
</ng-container>
</ng-template>

0 comments on commit db594bc

Please sign in to comment.