Skip to content

Expansion panel memory leak #8403

@anthonn

Description

@anthonn

Bug, feature request, or proposal:

I have an SPA that uses angular material2. When using mat-expansion-panel I get rising number Detatched DOM trees if removing/adding the expansion panel.

What are the steps to reproduce?

If browsing to https://material.angular.io/components/expansion/examples and clicking on API -> Examples -> API and so on this behaviour could be reproduced. First after entering the page chrome heap snapshot shows:

image

After clicking the tabs API, and Examples 10 times it shows:
image

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

In my SPA I use:

  • Angular 5.0.1
  • Angular Material: 5.0.0-rc0
  • Angular CLI 1.5.0

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions