-
<Dialog.Content>
{children}
<Dialog.Close>
<ButtonClose />
</Dialog.Close>
</Dialog.Content>
|
Beta Was this translation helpful? Give feedback.
Answered by
joaom00
Dec 17, 2022
Replies: 2 comments 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
arkmech
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 withevent.preventDefault()
. I don't suggest just disabling this behavior.