When dialogs are opened, they do not gain focus.
This means that esc can't be used to close them, as it does not receive the keyboard events.
This is present on the alert demo on the website, alerts will not close when esc is pressed, but the same alert example for MUI receives the focus.
It is also possible for the focus to leave the dialog, that may just be because the focus trap has not been implemented yet.
When dialogs are opened, they do not gain focus. This means that esc can't be used to close them, as it does not receive the keyboard events. This is present on the alert demo on the website, alerts will not close when esc is pressed, but the same alert example for MUI receives the focus.
It is also possible for the focus to leave the dialog, that may just be because the focus trap has not been implemented yet.