That being said, it is supported by the library, under the following conditions:
- Dialogs should live next to each other in the DOM, not within one another.
targetsargument of the constructor or value of the
data-a11y-dialogattribute of every dialog should not include the other dialogs, only the main content container(s). For instance:
Pressing ESC or clicking the backdrop will only close the top-most dialog, while the other remain untouched. It essentially makes it possible to stack dialogs on top of each other, then closing them one at a time.