-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/dialogdocsThis issue is related to documentationThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issue
Description
Reproduction
Steps to reproduce:
- provide MAT_DIALOG_DEFAULT_OPTIONS in the module
- provide useValue. (ex. disableClose: true - see the following code)
{
provide: MAT_DIALOG_DEFAULT_OPTIONS,
useValue: {
disableClose: true,
},
},
Expected Behavior
What behavior were you expecting to see?
Configs should be set along with the default values for the other options. Such behaviour can be seen when provided in the component with dialog.open() method
Actual Behavior
What behavior did you actually see?
Given configs overwrite the Configs value, so that default options are also overwritten.
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/dialogdocsThis issue is related to documentationThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issue