The Dialog provides an option to set the initially focused element.
By default, the primary action button is focused, after the Dialog has been opened. You can control this behavior by setting the
autoFocusedElement property to a query selector string.
The following example demonstrates how to focus the first input element within the Dialog, instead of the default primary button.