Add the autofocus attribute to any interactive element within the modal, to have it automatically focus whenever the modal is opened.
autofocus
In this example the attribute has been added to the Submit element