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

The scrollToVirtualIndexmethod is not working as expected on Table #11948

Closed
vlnicolae opened this issue Sep 19, 2022 · 3 comments
Closed

The scrollToVirtualIndexmethod is not working as expected on Table #11948

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

Comments

@vlnicolae
Copy link

vlnicolae commented Sep 19, 2022

Describe the bug

navigating back with scrollToVirtualIndex leads to white screen on p-table

Environment

latest primeng code. Make changes on showcase tablevirtualscrolldemo to reproduce the issue

Reproducer

No response

Angular version

14.0.0

PrimeNG version

14.1.2-SNAPSHOT

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

16.15.0

Browser(s)

Chrome

Steps to reproduce the behavior

  1. call scrollToVirtualIndex(120)
  2. call scrollToVirtualIndex(11)
  3. p-table has white screen

Expected behavior

  1. call scrollToVirtualIndex(120)
  2. call scrollToVirtualIndex(11)
  3. p-table scroll show navigate to row 11

On stackblitz: 1. go to index 120; 2. go to index 11
https://primeng-tablevirtualscroll-demo-ifhtgr.stackblitz.io/

Also navigation to the index parameter of scrollToVirtualIndex(index) does not work well. The row with corresponding index is below the table header.

@vlnicolae vlnicolae added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 19, 2022
@cetincakiroglu cetincakiroglu added this to the 14.Future milestone Sep 21, 2022
@cetincakiroglu
Copy link
Contributor

Hi,

Great catch thanks for reporting the issue!

Regards

@cetincakiroglu cetincakiroglu self-assigned this Sep 21, 2022
@cetincakiroglu cetincakiroglu modified the milestones: 14.Future, 14.1.2 Sep 21, 2022
@cetincakiroglu cetincakiroglu modified the milestones: 14.1.2, 14.1.3 Sep 28, 2022
@PeterSteen
Copy link

Hi Have observed the same issue.

@mertsincan mertsincan changed the title p-table: scrollToVirtualIndex The scrollToVirtualIndexmethod is not working as expected on Table Nov 8, 2022
@viniciusrf
Copy link

I'm using primeng v15.4.0, angular 15.0.4 and I have the same issue, who was apparently fixed on 14.2.3.
My table has 5 visible items, if I scrollToVirtualIndex greater than currentIndex+6 the p-table becomes white, and I have to click again in the table to show the items again.

My start screen (index 1):
Captura de tela 2023-11-17 093650

After scrollToVirtualIndex(8):
Captura de tela 2023-11-17 093713

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

5 participants