Skip to content

Reuse of radio buttons in virtual-scroll is buggy #16658

@Hanfrey

Description

@Hanfrey

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-nxy8dk

Steps to reproduce:

  1. Scroll the upper list back and forth (sometimes it takes a bit, so a little bit more scrolling)
  2. see that some radio buttons are not selected anymore

If I take the templateCache out, it works like expected!

Expected Behavior

What behavior were you expecting to see?
one radio button is checked

Actual Behavior

What behavior did you actually see?
on some items, none radio button is checked.

Environment

  • Angular: 8.2.0
  • CDK/Material: 8.1.2
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Fedora, macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrollingarea: material/radio

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions