-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening MatDialog from another MatDialog doesn't work in Safari #8216
Comments
Should be fixed by #8051 in the next release. |
I still had problems with this, but my solution was to wrap opening the second dialog in a setTimeout with a time of 500. After closing the initial dialog window |
I had the same problem using IE11 and the EddWills95 workaround worked like a charm. Please note that this problem does not occur anymore following our Angular 5 update, but this fix allowed us to solve the bug in our previous releases.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
Opening a dialog from another dialog doesn't work in Safari
Expected behavior
I'd expect the behaviour to be the same as in Chrome where a dialog can be opened from another dialog.
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-1qxhep
If you check the two console.log() statements in safari the result looks different:
Safari
First dialog info:
`MatDialogRef {_overlayRef: OverlayRef, _containerInstance: MatDialogContainer, id: "dialog1", disableClose: false, _afterOpen: Subject, …}
Second dialog info:
MatDialogRef {_overlayRef: OverlayRef, _containerInstance: MatDialogContainer, id: "dialog1", disableClose: false, _afterOpen: Subject, …}
Chrome
First dialog info:
MatDialogRef {_overlayRef: OverlayRef, _containerInstance: MatDialogContainer, id: "dialog1", disableClose: false, _afterOpen: Subject, …}
Second dialog info:
MatDialogRef {_overlayRef: OverlayRef, _containerInstance: MatDialogContainer, id: "dialog2", disableClose: false, _afterOpen: Subject, …}
Notice that for Chrome the 'id' parameter passed to the dialogs is properly picked up, for Safari I don't get the same behaviour and therefore Safari does not open the second dialog panel.
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: