You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've debug MatDialog::open() method and realized that this issue is being caused by the following intructions:
// If there is a dialog that is currently animating open, return the MatDialogRef of that dialogif(this._dialogAnimatingOpen){returnthis._lastDialogRef;}
As I am trying to open a new dialog from another one (inside ngOnInit method) it seems that the MatDialog::open() method is returning the reference for the first opening dialog in both calls.
I put the second call inside a setTimeout() to apply a delay of 1000ms, and the returns of two calls now are different. But that is a terrible workaround.
I hope there would be a more elegant way of managing dialog openings.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I'm trying to set custom IDs for MatDialogRef, but it is not working. Any custom ID is being overriden by default strategy (mat-dialog-)
Reproduction
Expected Behavior
DialogRef.id
should contain the value passed inid
propertyActual Behavior
DialogRef.id
value seems to be being ignored and overwritten by default strategyEnvironment
The text was updated successfully, but these errors were encountered: