Skip to content

Commit

Permalink
set initial focus to slot area
Browse files Browse the repository at this point in the history
Refs: #5844
  • Loading branch information
anicyne committed Jan 9, 2025
1 parent 173def8 commit 67e9c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/modal/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class KolModal implements ModalAPI {
onClose={this.handleNativeCloseEvent.bind(this)}
>
{/* It's necessary to have a block element container for cross-browser compatibility. The display property for the slot content is unknown and could be inline. */}
<div>
<div tabindex="-1">
<slot />
</div>
{this.state._variant === 'card' && (
Expand Down

0 comments on commit 67e9c97

Please sign in to comment.