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):
Reproduction
Steps to reproduce:
{
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