Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table: VirtualScroll not detecting changes of data #11771

Closed
schokolateur opened this issue Aug 3, 2022 · 0 comments
Closed

Table: VirtualScroll not detecting changes of data #11771

schokolateur opened this issue Aug 3, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@schokolateur
Copy link

Describe the bug

Hi there,

since the update to 14.0.0 my tables using virtualScroll not updating anymore when i change (add/remove) data.

My table is setup as following:
<p-table #table [scrollable]="true" [virtualScroll]="true" [scrollHeight]="'flex'" [virtualScrollItemSize]="30" [value]="tableData">

I simply add a row every second for testing:

addRow() {
    this.tableData.push({ id: new Date().getTime() });
    this.tableData = [...this.tableData];
    setTimeout(() => {
      this.addRow();
    }, 1000);
  }

Nothing happens.
When i resize the browser window in height, the data will be displayed.
Removing virtualScroll "resolves" the problem, but is not the solution for some of my big tables...

Environment

Angular 14.1.0 app running in browsers.

Reproducer

No response

Angular version

14.1.0

PrimeNG version

14.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

14.18.0

Browser(s)

Chrome 103.0.5060.134 for local testing

Steps to reproduce the behavior

No response

Expected behavior

No response

@schokolateur schokolateur added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 3, 2022
@cetincakiroglu cetincakiroglu added this to the 14.Future milestone Aug 8, 2022
@mertsincan mertsincan self-assigned this Aug 9, 2022
@mertsincan mertsincan modified the milestones: 14.Future, 14.0.1 Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants