Closed
Description
Feature request:
Both ESC and backdrop click closes an active dialog. This can be disabled at the moment, but only all together. These two behaviours should be decoupled.
What is the expected behavior?
MatDialogConfig
should have 2 extra properties:
// ...
disableCloseOnEscape: boolean,
disableCloseOnBackdropClick: boolean
What is the use-case or motivation for changing an existing behavior?
So we can disable closing on backdrop click, but keep close on ESC press. It would be very helpful for inaccurate mouse users :).
Metadata
Metadata
Assignees
Labels
No labels