Closed mastermsd closed 4 years ago
We've got a PR to solve this already: https://github.com/angular/material2/pull/11940, although it needs a little bit of love to pass the CI. @jelbourn should we bump the priority on it?
@jelbourn can this PR been merged asap please. This is a critical blocker and may not go in to production.
Closing since this was fixed a long time ago.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
What is the expected behavior?
MatDialog should behave the same on a ssr application
What is the current behavior?
On SSR, when MatDialog is triggered (
this.dialog.open()
) on pageload (ngOnInit
) two<cdk-overlay-container>
is generated in the DOM. When trying to close it (this.dialog.close()
) only one instance is responding to it. The other one still remain in the DOM. Which leaves the user with a dialog on the screen which can not been closed.What are the steps to reproduce?
Run your app on SSR, open MatDialog on ngOnInit.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
MacOS Mojave (10.14.3) Typescript 3.1.x Node 10.13.0 Yarn 1.10.0
Affects all browsers
Is there anything else we should know?
-