Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Dialog causes a memory leak when Dialog component contains mat-form-field #15823
What is the expected behavior?
Instantiating a dialog with a component that contains
What is the current behavior?
What are the steps to reproduce?
Try to open and close the dialog several times. Notice each time the number of detached DOM nodes gets higher and forcing garbage collection doesn't reduce it.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material: 7.3.7
Is there anything else we should know?
Could be related to #10188