After dialog has closed, keyboard focus returns to the beginning of the parent window.
Please read the documentation to understand how these examples were created.
This modal dialog just opened on page load, preventing access to the main page underneath. Probably not what you were expecting, right? Right. This intrusive interaction should be avoided if at all possible.
Typically, a dialog should only be opened after an explicit user action, such as clicking a Dialog Button.
Updated: Jan 3rd, 2020