Skip to content

Strange Subscriber Memory Leak when using mat-radio-group #17306

@dottodot

Description

@dottodot

I'm not sure why this is happening and can't see an obvious reason but when I use mat-radio-group in my template I seem to get and big Subscriber memory leak, and if I remove mat-radio-group that leak no longer occurs.
Screenshot 2019-10-06 at 13 06 52

  <mat-radio-group [formControl]="shopService.sort" aria-label="Select an option">
    <mat-radio-button [value]="option.query" *ngFor="let option of shopService.sortOptions">{{option.title}}
    </mat-radio-button>
  </mat-radio-group>

if I remove the mat-radio-group so I just have the mat-radio-button I also don't get the leak. i.e

   <mat-radio-button [value]="option.query" *ngFor="let option of shopService.sortOptions">{{option.title}}
    </mat-radio-button>

Just a bit confused as to why this would be happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: material/radioformsThis issue is related to Angular Forms integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions