How to Not Auto Focus First Element When Dialog is Opened? #2624
-
Whenever the dialog opens, it auto focuses the first input element inside the dialog. How do I prevent this behavior? The Dialog has a restoreFocus prop, but does not have an autoFocus prop? I also tried setting initialFocusEl to |
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
Jul 2, 2024
Replies: 1 comment
-
You can achieve that by setting the initial focus el to the dialog content, or set tabIndex=0 on it |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
elson-currentcorp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can achieve that by setting the initial focus el to the dialog content, or set tabIndex=0 on it