Skip to content

bug(cdkTable): virtual scroll does not work for tables with cdkRowDefWhen #32670

@lpl14

Description

@lpl14

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Virtual scroll does not work for tables with multiple cdkRow definitions. Properties remain undefined when a line from another definition is reused.

Reproduction

StackBlitz link: cdk-table-virtual-scroll-example
Steps to reproduce:

  1. download and update the project to Angular 21.1 (sorry, I struggled with updating on StackBlitz)
  2. run the project and scroll the tables down

Expected Behavior

See the lines as if there were no virtual scroll.

Actual Behavior

Rows that have reused a row of the other definition doesn't show their property. It is undefined.

Environment

  • Angular: 21.1.0
  • CDK/Material: 21.1.0
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

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/tablefeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions