Skip to content

Cdk virtual (18.0.1) is not working properly in some case with angular 18.2.12 #30958

@qayyumgb

Description

@qayyumgb

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

I am facing issue in some cases that angular cdk virtual scrolling is not working properly , It takes height and show only first 3 items and then all white spaces showing with scroll, Items are not loading on scroll.
case 1: when the application is in idol state for a while its not working properly.
case 2: when page hard reload some times its not working.

Please guide

Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

It should load data properly when ever i scroll

Actual Behavior

Its not loading the data on scroll in some case, only showing white space on scroll

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions