How to prevent auto-focus on first button in dialog?

master
a0f6cf5[internal] Iterate on resolveMultipleLabels in one loop (#3709)
This post might have stale content, as master is 712 commits ahead.

How can I prevent the first button in a dialog to be automatically focused on open?

Avatar of sgalanb
Santiago Galán
commented

I don't want the buttons to be focused on open but I do want to maintain the focus ability, if the users tabs or move focus in other way it should let them focus the buttons.

Avatar of sgalanb
Santiago Galán
commented

I did that and since the focus remains on the trigger, if I tab I don't focus the dialog buttons, but other elements under the dialog.


END OF POST

How to prevent auto-focus on first button in dialog? — mui/base-ui