Skip to content

Add option to disable dialog click-outside-to-close #1419

Closed
@jcmoore0

Description

@jcmoore0

Bug, feature request, or proposal: Feature

What is the expected behavior? Would like a "Modal" behavior where the Dialog does not close when clicking outside of the container.

What is the current behavior? Clicking outside the dialog container closes MdDialogRef. I would like to be able to turn disable this, so the user may not click outside and is only allowed to interact with the most recent "highest z-index" MdDialog open. We use one dialog on top of another.

What are the steps to reproduce? Click outside the dialog container.

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, browsers are affected?

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions