Skip to content
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

Dialog causes a memory leak when Dialog component contains mat-form-field #15823

Open
stdcall opened this Issue Apr 15, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@stdcall
Copy link

stdcall commented Apr 15, 2019

What is the expected behavior?

Instantiating a dialog with a component that contains mat-form-field element causes a DOM node memory leak.

What is the current behavior?

Memory leak

What are the steps to reproduce?

https://stackblitz.com/edit/angular-yx1kuw?file=app%2Fdialog-overview-example-dialog.html

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
Chrome: 73.0.3683.103

Is there anything else we should know?

Could be related to #10188

@stdcall stdcall changed the title Dialog causes a memory leak when Dialog components contains input Dialog causes a memory leak when Dialog component contains input Apr 15, 2019

@stdcall stdcall changed the title Dialog causes a memory leak when Dialog component contains input Dialog causes a memory leak when Dialog component contains mat-form-field Apr 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.