Open modal

Managing focus in modals

Add the autofocus attribute to any interactive element within the modal, to have it automatically focus whenever the modal is opened.

In this example the attribute has been added to the Submit element

CancelSubmit