-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Closed
Copy link
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: cdk/dialog
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
The closed observable is not emitting when the CDK dialog is being closed by navigation when the closeOnNavigation: true property is applied. As a side effect of the dialog not properly closing, the dialog ref is also kept in the Dialog.openDialogs list.
Reproduction
Steps to reproduce:
- Open a CDK dialog with
closeOnNavigation: true - Navigate away
Expected Behavior
The dialog to close properly
Actual Behavior
The closed observable is not emtting and the dialog is being kept in de list with open dialogs
Environment
- Angular: 15.1.0
- CDK/Material: 15.1.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11
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: cdk/dialog