Skip to content
Discussion options

You must be logged in to vote

Is this because it is the only focusable element? I have text in there, but obviously that ain't focusable.

Yeah, when dialog opens the first focusable element is focused.

If you want to customize the element that's focused when dialog is opened you can use onOpenAutoFocus prop with event.preventDefault(). I don't suggest just disabling this behavior.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@arkmech
Comment options

Answer selected by arkmech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants